Function at 0x581a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c7d3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push edi
mov edi, dword [esp + 0x98]
lea eax, [esp + 0x30]
mov ebp, ecx
push eax
push edi
mov byte [esp + 0x38], 0x1b
mov byte [esp + 0x39], 0xe
mov byte [esp + 0x3a], 0x43
mov byte [esp + 0x3b], 0x3b
mov byte [esp + 0x3c], 0x53
mov byte [esp + 0x3d], 0x50
mov byte [esp + 0x3e], 0x3f
mov byte [esp + 0x3f], 0x49
call esi
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x581abb
push 0x636e64
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x28], eax
xor al, al
jmp 0x582b76
cmp dword [ebp + 0x405c], 2
jne 0x581b93
push str.CAAC__MIS
push edi
call esi
add esp, 8
cmp eax, ebx
jne 0x581b93
push str.DEVICE
push edi
call esi
add esp, 8
cmp eax, ebx
je 0x581b01
push str.DEVICE
call fcn.004ec2d0
add esp, 4
mov dword [ebp + 0x28], eax
xor al, al
jmp 0x582b76
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
mov eax, dword [ecx - 8]
cmp eax, 3
jle 0x581b53
add eax, 0xfffffffd
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimRight
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004ec3c0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x28], eax
mov dword [esp + 0x90], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x582b76
mov eax, dword [esp + 0x9c]
cmp eax, ebx
jle 0x582b74
jmp 0x581bab
mov eax, dword [esp + 0x9c]
lea ecx, [eax - 0x14]
cmp ebx, ecx
jle 0x581bb8
cmp byte [ebx + edi], 0x26
je 0x581b8c
add eax, 0xffffffba
cmp ebx, eax
jge 0x582b64
mov edx, dword [esp + 0x98]
mov ecx, 0xd
mov edi, str.TOTAL_TICKETS
lea esi, [ebx + edx]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x581b8c
mov edi, dword [esp + 0x98]
cmp ebx, eax
jge 0x582b64
mov al, byte [ebx + edi]
push eax
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov cl, byte [ebx + edi + 1]
push ecx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov dl, byte [ebx + edi + 2]
push edx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
cmp byte [ebx + edi + 3], 0x2d
jne 0x582b64
mov al, byte [ebx + edi + 4]
push eax
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov cl, byte [ebx + edi + 5]
push ecx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov dl, byte [ebx + edi + 6]
push edx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov al, byte [ebx + edi + 7]
push eax
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov cl, byte [ebx + edi + 8]
push ecx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov dl, byte [ebx + edi + 9]
push edx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov al, byte [ebx + edi + 0xa]
push eax
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov cl, byte [ebx + edi + 0xb]
push ecx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov dl, byte [ebx + edi + 0xc]
push edx
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
mov al, byte [ebx + edi + 0xd]
push eax
call fcn.004ee9d0
add esp, 4
test al, al
je 0x582b64
cmp byte [ebx + edi + 0xe], 0x20
jne 0x582b64
xor ecx, ecx
mov byte [esp + 0x38], 0
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov dword [esp + 0x45], ecx
mov word [esp + 0x49], cx
mov byte [esp + 0x4b], cl
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
push 0x30
mov dword [esp + 0x94], 2
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov byte [esp + 0x90], 3
je 0x581e13
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 4]
mov byte [esp + 0x90], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [esp + 0x90], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x90], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x90], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x90], 8
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x18]
mov byte [esp + 0x90], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x90], 0xa
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x90], 0xb
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x90], 0xc
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x90], 0xd
call sub.MFC42.DLL_CString::CString_1
mov byte [esi + 0x2c], 0
jmp 0x581e15
xor esi, esi
mov al, byte [ebx + edi + 0x11]
mov dword [esp + 0x1c], esi
cmp al, 0x20
mov byte [esp + 0x90], 2
jne 0x5824c8
mov dl, byte [ebx + edi + 0x12]
push edx
call fcn.004ee9f0
add esp, 4
test al, al
je 0x5824c8
mov al, byte [ebx + edi + 0x13]
push eax
call fcn.004ee9f0
add esp, 4
test al, al
je 0x5824c8
mov cl, byte [ebx + edi + 0x14]
push ecx
call fcn.004ee9f0
add esp, 4
test al, al
je 0x5824c8
cmp byte [ebx + edi + 0x15], 0x20
jne 0x5824c8
xor edx, edx
lea eax, [ebx + edi]
mov dword [esp + 0x38], edx
push 0xe
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], edx
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
xor edx, edx
lea eax, [ebx + edi + 0x12]
mov dword [esp + 0x38], edx
push 3
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], edx
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator
xor edx, edx
lea eax, [ebx + edi + 0x16]
mov dword [esp + 0x38], edx
push 3
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x4c], edx
push ecx
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x38]
lea ecx, [esi + 0xc]
push edx
call sub.MFC42.DLL_CString::operator
push 3
lea eax, [ebx + edi + 0x19]
push 0x636e44
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x58212b
push str.ET_EXCHANGE
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
xor ecx, ecx
mov byte [esp + 0x4c], 0
mov dword [esp + 0x4d], ecx
mov dword [esp + 0x51], ecx
mov dword [esp + 0x55], ecx
mov dword [esp + 0x59], ecx
mov word [esp + 0x5d], cx
mov byte [esp + 0x5f], cl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea edx, [ebx + edi + 0x1c]
push 0xa
lea eax, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x9c], 0xe
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [esp + 0x10]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
lea ecx, [ebx + edi + 0x26]
mov dword [esp + 0x4c], eax
push 0xa
mov dword [esp + 0x54], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x58], eax
push ecx
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x68], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_1
xor edx, edx
lea eax, [ebx + edi + 0x30]
mov dword [esp + 0x4c], edx
push 7
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], edx
push eax
mov dword [esp + 0x60], edx
push ecx
mov dword [esp + 0x68], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_1
xor ecx, ecx
lea edx, [ebx + edi + 0x3b]
mov dword [esp + 0x4c], ecx
push 6
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x50]
mov dword [esp + 0x58], ecx
push edx
mov dword [esp + 0x60], ecx
push eax
mov dword [esp + 0x68], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [esp + 0x10]
lea ecx, [esi + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
lea ecx, [ebx + edi + 0x42]
mov dword [esp + 0x4c], eax
push 6
mov dword [esp + 0x54], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x58], eax
push ecx
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x68], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x10]
jmp 0x582317
push str.TKTT
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x61], edx
mov byte [esp + 0x60], 0
mov dword [esp + 0x65], edx
mov dword [esp + 0x69], edx
mov dword [esp + 0x6d], edx
mov word [esp + 0x71], dx
mov byte [esp + 0x73], dl
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebx + edi + 0x1c]
push 0xa
lea ecx, [esp + 0x64]
push eax
push ecx
mov byte [esp + 0x9c], 0xf
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x14]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
xor ecx, ecx
lea edx, [ebx + edi + 0x26]
mov dword [esp + 0x60], ecx
push 0xa
mov dword [esp + 0x68], ecx
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], ecx
push edx
mov dword [esp + 0x74], ecx
push eax
mov dword [esp + 0x7c], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [esp + 0x14]
lea ecx, [esi + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
lea ecx, [ebx + edi + 0x30]
mov dword [esp + 0x60], eax
push 7
mov dword [esp + 0x68], eax
lea edx, [esp + 0x64]
mov dword [esp + 0x6c], eax
push ecx
mov dword [esp + 0x74], eax
push edx
mov dword [esp + 0x7c], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_1
xor edx, edx
lea eax, [ebx + edi + 0x3b]
mov dword [esp + 0x60], edx
push 6
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], edx
push eax
mov dword [esp + 0x74], edx
push ecx
mov dword [esp + 0x7c], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x14]
lea ecx, [esi + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
xor ecx, ecx
lea edx, [ebx + edi + 0x42]
mov dword [esp + 0x60], ecx
push 5
mov dword [esp + 0x68], ecx
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], ecx
push edx
mov dword [esp + 0x74], ecx
push eax
mov dword [esp + 0x7c], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [esp + 0x14]
lea ecx, [esi + 0x20]
push edx
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp + 0x4088]
mov eax, edx
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x24], eax
test eax, eax
mov eax, dword [ebp + 0x4084]
jne 0x58236b
test eax, eax
je 0x58234e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x4084], 0
mov ecx, dword [ebp + 0x4084]
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [ebp + 0x408c], eax
mov dword [ebp + 0x4088], eax
jmp 0x582b4a
test eax, eax
jne 0x5823b3
mov eax, dword [esp + 0x20]
lea esi, [eax + 1]
lea edi, [esi*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x4084], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x408c], esi
mov dword [ebp + 0x4088], esi
jmp 0x5824ae
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x5823f8
cmp dword [esp + 0x24], edx
jle 0x5823e0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc ecx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x4084]
lea eax, [edx + 1]
mov dword [ebp + 0x4088], eax
jmp 0x582b4a
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x582425
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x582419
mov eax, 4
jmp 0x582425
cmp eax, 0x400
jle 0x582425
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x582437
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x4088]
mov esi, dword [ebp + 0x4084]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x4088]
lea esi, [ecx + 1]
mov ecx, esi
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x4084]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [ebp + 0x4084], edx
mov dword [ebp + 0x4088], esi
mov dword [ebp + 0x408c], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x98]
mov ecx, dword [ebp + 0x4084]
mov edx, dword [esp + 0x20]
jmp 0x582b4a
push 0xa
lea eax, [ebx + edi + 0x11]
push str._ET_REFUND
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x582959
mov al, byte [ebp + 0x407c]
test al, al
jne 0x582b4d
push 0x30
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov byte [esp + 0x90], 0x10
je 0x5825c0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 4]
mov byte [esp + 0x90], 0x11
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [esp + 0x90], 0x12
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x90], 0x13
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x90], 0x14
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x90], 0x15
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x18]
mov byte [esp + 0x90], 0x16
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x90], 0x17
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x90], 0x18
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x90], 0x19
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x28]
mov byte [esp + 0x90], 0x1a
call sub.MFC42.DLL_CString::CString_1
mov byte [esi + 0x2c], 0
jmp 0x5825c2
xor esi, esi
xor eax, eax
push 0xe
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], eax
mov byte [esp + 0x94], 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + edi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator
push str.ET_REFUND
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x75], eax
mov byte [esp + 0x74], 0
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov word [esp + 0x85], ax
mov byte [esp + 0x87], al
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebx + edi + 0x1c]
push 0xa
lea edx, [esp + 0x78]
push ecx
push edx
mov byte [esp + 0x9c], 0x1b
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x74]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_1
xor edx, edx
lea eax, [ebx + edi + 0x26]
mov dword [esp + 0x74], edx
push 0xa
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x80], edx
push eax
mov dword [esp + 0x88], edx
push ecx
mov dword [esp + 0x90], edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x18]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
lea edx, [ebx + edi + 0x30]
push 7
lea eax, [esp + 0x78]
mov dword [esp + 0x84], ecx
push edx
push eax
mov dword [esp + 0x90], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
lea edx, [esp + 0x18]
lea ecx, [esi + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
xor eax, eax
lea ecx, [ebx + edi + 0x42]
mov dword [esp + 0x74], eax
push 5
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x78]
mov dword [esp + 0x80], eax
push ecx
mov dword [esp + 0x88], eax
push edx
mov dword [esp + 0x90], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x74]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp + 0x4088]
mov dword [esp + 0x20], edx
lea eax, [edx + 1]
mov dword [esp + 0x24], eax
test eax, eax
mov eax, dword [ebp + 0x4084]
jne 0x5827f2
test eax, eax
je 0x5827df
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x4084], 0
xor eax, eax
mov dword [ebp + 0x408c], eax
mov dword [ebp + 0x4088], eax
jmp 0x582936
test eax, eax
jne 0x58283a
mov edx, dword [esp + 0x20]
lea esi, [edx + 1]
lea edi, [esi*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x4084], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x408c], esi
mov dword [ebp + 0x4088], esi
jmp 0x58292b
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x582877
cmp dword [esp + 0x24], edx
jle 0x582865
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc ecx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [ebp + 0x4088], eax
jmp 0x582936
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x5828a4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x582898
mov eax, 4
jmp 0x5828a4
cmp eax, 0x400
jle 0x5828a4
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x5828b6
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x4088]
mov esi, dword [ebp + 0x4084]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x4088]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x4084]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [ebp + 0x4084], edx
mov dword [ebp + 0x4088], esi
mov dword [ebp + 0x408c], eax
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x4084]
mov edx, dword [esp + 0x20]
mov byte [esp + 0x90], 2
mov dword [ecx + edx*4], esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x582b4d
push 7
lea eax, [ebx + edi + 0x11]
push str.__VOID
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x582b50
mov dword [esp + 0x38], eax
push 0xe
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + edi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator
push str.VOID
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp + 0x4088]
mov dword [esp + 0x20], edx
lea eax, [edx + 1]
mov dword [esp + 0x24], eax
test eax, eax
mov eax, dword [ebp + 0x4084]
jne 0x5829fc
test eax, eax
je 0x5829e9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x4084], 0
xor eax, eax
mov dword [ebp + 0x408c], eax
mov dword [ebp + 0x4088], eax
jmp 0x582b40
test eax, eax
jne 0x582a44
mov eax, dword [esp + 0x20]
lea esi, [eax + 1]
lea edi, [esi*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x4084], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x408c], esi
mov dword [ebp + 0x4088], esi
jmp 0x582b35
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x582a81
cmp dword [esp + 0x24], edx
jle 0x582a6f
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc ecx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [ebp + 0x4088], eax
jmp 0x582b40
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x582aae
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x582aa2
mov eax, 4
jmp 0x582aae
cmp eax, 0x400
jle 0x582aae
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x582ac0
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x4088]
mov esi, dword [ebp + 0x4084]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x4088]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x4084]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [ebp + 0x4084], edx
mov dword [ebp + 0x4088], esi
mov dword [ebp + 0x408c], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x98]
mov ecx, dword [ebp + 0x4084]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], esi
add ebx, 0x44
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x9c]
inc ebx
cmp ebx, eax
jl 0x581ba4
mov al, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret 8