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

Disassembly:
push 0xffffffffffffffff
push 0x5bfa1f
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 0x57941b
push 0x62d128
call fcn.004ea010
add esp, 4
mov dword [ebp + 0x28], eax
xor al, al
jmp 0x57a4d6
cmp dword [ebp + 0x405c], 2
jne 0x5794f3
push str.CAAC__MIS
push edi
call esi
add esp, 8
cmp eax, ebx
jne 0x5794f3
push str.DEVICE
push edi
call esi
add esp, 8
cmp eax, ebx
je 0x579461
push str.DEVICE
call fcn.004ea010
add esp, 4
mov dword [ebp + 0x28], eax
xor al, al
jmp 0x57a4d6
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 0x5794b3
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.004ea100
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 0x57a4d6
mov eax, dword [esp + 0x9c]
cmp eax, ebx
jle 0x57a4d4
jmp 0x57950b
mov eax, dword [esp + 0x9c]
lea ecx, [eax - 0x14]
cmp ebx, ecx
jle 0x579518
cmp byte [ebx + edi], 0x26
je 0x5794ec
add eax, 0xffffffba
cmp ebx, eax
jge 0x57a4c4
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 0x5794ec
mov edi, dword [esp + 0x98]
cmp ebx, eax
jge 0x57a4c4
mov al, byte [ebx + edi]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov cl, byte [ebx + edi + 1]
push ecx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov dl, byte [ebx + edi + 2]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
cmp byte [ebx + edi + 3], 0x2d
jne 0x57a4c4
mov al, byte [ebx + edi + 4]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov cl, byte [ebx + edi + 5]
push ecx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov dl, byte [ebx + edi + 6]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov al, byte [ebx + edi + 7]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov cl, byte [ebx + edi + 8]
push ecx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov dl, byte [ebx + edi + 9]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov al, byte [ebx + edi + 0xa]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov cl, byte [ebx + edi + 0xb]
push ecx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov dl, byte [ebx + edi + 0xc]
push edx
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
mov al, byte [ebx + edi + 0xd]
push eax
call fcn.004ec710
add esp, 4
test al, al
je 0x57a4c4
cmp byte [ebx + edi + 0xe], 0x20
jne 0x57a4c4
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 0x579773
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 0x579775
xor esi, esi
mov al, byte [ebx + edi + 0x11]
mov dword [esp + 0x1c], esi
cmp al, 0x20
mov byte [esp + 0x90], 2
jne 0x579e28
mov dl, byte [ebx + edi + 0x12]
push edx
call fcn.004ec730
add esp, 4
test al, al
je 0x579e28
mov al, byte [ebx + edi + 0x13]
push eax
call fcn.004ec730
add esp, 4
test al, al
je 0x579e28
mov cl, byte [ebx + edi + 0x14]
push ecx
call fcn.004ec730
add esp, 4
test al, al
je 0x579e28
cmp byte [ebx + edi + 0x15], 0x20
jne 0x579e28
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 0x62d108
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x579a8b
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 0x579c77
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 0x579ccb
test eax, eax
je 0x579cae
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 0x57a4aa
test eax, eax
jne 0x579d13
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 0x579e0e
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x579d58
cmp dword [esp + 0x24], edx
jle 0x579d40
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 0x57a4aa
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x579d85
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x579d79
mov eax, 4
jmp 0x579d85
cmp eax, 0x400
jle 0x579d85
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x579d97
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 0x57a4aa
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 0x57a2b9
mov al, byte [ebp + 0x407c]
test al, al
jne 0x57a4ad
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 0x579f20
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 0x579f22
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 0x57a152
test eax, eax
je 0x57a13f
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 0x57a296
test eax, eax
jne 0x57a19a
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 0x57a28b
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x57a1d7
cmp dword [esp + 0x24], edx
jle 0x57a1c5
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 0x57a296
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x57a204
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x57a1f8
mov eax, 4
jmp 0x57a204
cmp eax, 0x400
jle 0x57a204
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x57a216
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 0x57a4ad
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 0x57a4b0
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 0x57a35c
test eax, eax
je 0x57a349
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 0x57a4a0
test eax, eax
jne 0x57a3a4
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 0x57a495
mov ecx, dword [ebp + 0x408c]
cmp dword [esp + 0x24], ecx
jg 0x57a3e1
cmp dword [esp + 0x24], edx
jle 0x57a3cf
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 0x57a4a0
mov eax, dword [ebp + 0x4090]
test eax, eax
jne 0x57a40e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x57a402
mov eax, 4
jmp 0x57a40e
cmp eax, 0x400
jle 0x57a40e
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x57a420
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 0x579504
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