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

Disassembly:
push 0xffffffffffffffff
push 0x72fa63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
xor eax, eax
mov ax, word [0x7d225c]
push ebp
push esi
push edi
push eax
call fcn.00595370
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x59eb73
xor ecx, ecx
mov cx, word [0x7d22f0]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00582de0
xor edx, edx
mov dx, word [0x7d22f2]
mov ecx, esi
mov ebp, eax
push edx
call fcn.00582de0
mov edi, eax
xor eax, eax
mov ax, word [0x7d22c0]
mov ecx, esi
mov dword [esp + 0x34], edi
push eax
call fcn.00582de0
xor ecx, ecx
mov cx, word [0x7d2292]
mov ebx, eax
mov dword [esp + 0x38], ebx
push ecx
mov ecx, esi
call fcn.00582de0
xor edx, edx
mov dx, word [0x7d22b6]
mov ecx, esi
mov dword [esp + 0x30], eax
push edx
call fcn.00582de0
mov esi, eax
test esi, esi
je 0x59e20c
test byte [0x774469], 1
jne 0x59e20c
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x4c], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
nop
nop
nop
nop
nop
push 1
push 0x7b467c
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, esi
call fcn.00580d20
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x80], esi
je 0x59e234
mov ecx, eax
call fcn.0047e1e0
mov dword [esp + 0x14], eax
jmp 0x59e238
mov dword [esp + 0x14], esi
cmp ebp, esi
mov dword [esp + 0x80], 0xffffffff
je 0x59e29a
mov eax, dword [0x7d2344]
push 0
push 0
push 8
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.00581440
mov esi, dword [eax]
test esi, esi
je 0x59e29a
xor edx, edx
mov dx, word [0x7d225c]
push edx
call fcn.00595370
add esp, 4
test eax, eax
je 0x59e29a
xor ecx, ecx
mov cx, word [0x7d221c]
push ecx
mov ecx, eax
call fcn.00582de0
test eax, eax
je 0x59e29a
mov ecx, dword [esp + 0x14]
push esi
call fcn.0047e360
test edi, edi
je 0x59e2f0
mov eax, dword [0x7d2344]
push 0
push 0
push 8
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.00581440
mov esi, dword [eax]
test esi, esi
je 0x59e2f0
xor eax, eax
mov ax, word [0x7d225c]
push eax
call fcn.00595370
add esp, 4
test eax, eax
je 0x59e2f0
xor ecx, ecx
mov cx, word [0x7d221c]
push ecx
mov ecx, eax
call fcn.00582de0
test eax, eax
je 0x59e2f0
mov ecx, dword [esp + 0x14]
push esi
call fcn.0047e360
test ebx, ebx
je 0x59e346
mov eax, dword [0x7d2344]
push 0
push 0
push 8
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.00581440
mov esi, dword [eax]
test esi, esi
je 0x59e346
xor eax, eax
mov ax, word [0x7d225c]
push eax
call fcn.00595370
add esp, 4
test eax, eax
je 0x59e346
xor ecx, ecx
mov cx, word [0x7d221c]
push ecx
mov ecx, eax
call fcn.00582de0
test eax, eax
je 0x59e346
mov ecx, dword [esp + 0x14]
push esi
call fcn.0047e360
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x59e39e
mov eax, dword [0x7d2344]
push 0
push 0
push 8
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00581440
mov esi, dword [eax]
test esi, esi
je 0x59e39e
xor eax, eax
mov ax, word [0x7d225c]
push eax
call fcn.00595370
add esp, 4
test eax, eax
je 0x59e39e
xor ecx, ecx
mov cx, word [0x7d221c]
push ecx
mov ecx, eax
call fcn.00582de0
test eax, eax
je 0x59e39e
mov ecx, dword [esp + 0x14]
push esi
call fcn.0047e360
lea ecx, [esp + 0x64]
call fcn.0047e1e0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], 1
mov dword [esp + 0x24], 0
call fcn.0047e710
test eax, eax
je 0x59e585
fld dword [esp + 0x24]
or ecx, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
fadd dword [ecx + 0xa8]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x28], ecx
fstp dword [esp + 0x24]
mov dword [esp + 0x20], eax
je 0x59e574
jmp 0x59e404
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x59e574
mov eax, dword [eax + 8]
cmp eax, ecx
mov dword [esp + 0x3c], eax
je 0x59e561
mov edx, dword [esp + 0x28]
add edx, 0xc0
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], 4
mov eax, dword [esp + 0x18]
mov ebp, dword [eax - 0x10]
cmp ebp, 0xffffffff
je 0x59e547
mov ecx, dword [0x7c67e0]
mov ecx, dword [ecx]
push ebp
call fcn.004ba590
mov eax, dword [eax + 0x10]
test byte [eax*4 + 0x747d88], 1
je 0x59e466
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
test byte [eax*4 + 0x747d88], 2
je 0x59e47b
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
lea ebx, [ecx + 0xc0]
mov dword [esp + 0x34], 4
mov esi, dword [ebx - 0x10]
cmp esi, 0xffffffff
je 0x59e535
mov edx, dword [0x7c67e0]
mov ecx, dword [edx]
push esi
call fcn.004ba590
cmp esi, ebp
mov edi, eax
jne 0x59e535
mov eax, dword [edi + 0x10]
test byte [eax*4 + 0x747d88], 1
je 0x59e4e8
mov esi, dword [esp + 0x2c]
cmp esi, dword [ebx]
jne 0x59e535
push edi
lea ecx, [esp + 0x68]
call fcn.0047e7d0
test al, al
jne 0x59e535
push edi
lea ecx, [esp + 0x68]
call fcn.0047e360
mov eax, dword [esp + 0x68]
mov dword [esp + eax*4 + 0x40], esi
jmp 0x59e535
test byte [eax*4 + 0x747d88], 2
je 0x59e51d
mov esi, dword [esp + 0x30]
cmp esi, dword [ebx + 0x10]
jne 0x59e535
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
test edx, edx
je 0x59e518
cmp edi, dword [edx + 8]
jne 0x59e510
cmp esi, dword [ecx]
je 0x59e535
mov edx, dword [edx + 4]
add ecx, 4
jmp 0x59e503
mov dword [ecx], esi
jmp 0x59e52b
push edi
lea ecx, [esp + 0x68]
call fcn.0047e7d0
test al, al
jne 0x59e535
push edi
lea ecx, [esp + 0x68]
call fcn.0047e360
mov eax, dword [esp + 0x34]
add ebx, 4
dec eax
mov dword [esp + 0x34], eax
jne 0x59e48d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
jne 0x59e431
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x59e3fc
mov ecx, dword [esp + 0x14]
call fcn.0047e720
test eax, eax
jne 0x59e3cb
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00583b60
xor eax, eax
mov ax, word [0x7d22c2]
mov ecx, esi
push eax
call fcn.00582de0
push eax
call fcn.00649ca0
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [esp + 0x3c], esi
call fcn.00578820
test esi, esi
je 0x59eb4b
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov edx, dword [eax]
push 0x10
mov ecx, eax
call dword [edx + 0xd4]
fstp dword [esp + 0x14]
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x59e601
mov dword [esp + 0x14], 0
jmp 0x59e6e0
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x59e646
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fadd st(0), st(0)
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x59e646
mov dword [esp + 0x14], 2
jmp 0x59e6e0
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fadd st(0), st(0)
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x59e68e
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fmul dword [0x746488]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x59e68e
mov dword [esp + 0x14], 4
jmp 0x59e6e0
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fmul dword [0x746488]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x59e6d8
mov ecx, dword [0x7c67dc]
push 0x3b7
call fcn.0040f950
fmul dword [0x74648c]
fcomp dword [esp + 0x14]
mov dword [esp + 0x14], 6
fnstsw ax
test ah, 0x41
je 0x59e6e0
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x68]
xor esi, esi
test eax, eax
mov dword [esp + 0x38], esi
jbe 0x59eb4b
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea ecx, [esp + 0x68]
call fcn.0047e740
mov edi, dword [eax + 8]
mov ecx, 0x7cb478
mov dword [esp + 0x34], edi
call fcn.004d51b0
mov ecx, dword [esp + 0x3c]
push 0
push 0xffff80b4
mov ebx, eax
call fcn.00588980
push 1
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.005813c0
mov ecx, dword [esp + 0x18]
push 1
call fcn.00581400
mov ecx, dword [esp + 0x18]
push 1
xor eax, eax
push eax
push 0xffff800b
call fcn.00581f30
cmp esi, dword [esp + 0x14]
jge 0x59e7a0
push edi
call fcn.005e2e00
add esp, 4
test al, al
je 0x59e7a0
mov ecx, dword [esp + 0x18]
push 0
push ebx
push 0xffff80b4
call fcn.00588630
mov edi, eax
push 0x10
mov ecx, edi
call fcn.00581130
push 0x10
mov ecx, edi
call fcn.00581210
push 1
mov eax, 0xa
push eax
push 0xffff800f
mov ecx, edi
call fcn.00581f30
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x10]
test byte [eax*4 + 0x747d88], 1
je 0x59e86d
cmp dword [eax*4 + 0x79454c], 0x556
jne 0x59e7cf
mov eax, dword [esp + esi*4 + 0x44]
mov ecx, dword [eax*4 + 0x794430]
push ecx
jmp 0x59e966
cmp dword [eax*4 + 0x79454c], 0x518
jne 0x59e7fe
mov edx, dword [esp + esi*4 + 0x44]
mov eax, dword [edx*4 + 0x794430]
mov ecx, dword [0x7c67dc]
push eax
call fcn.0040f930
push eax
push 0x2b0
jmp 0x59e931
cmp dword [eax*4 + 0x79454c], 0x51d
jne 0x59e82d
mov ecx, dword [esp + esi*4 + 0x44]
mov edx, dword [ecx*4 + 0x794430]
mov ecx, dword [0x7c67dc]
push edx
call fcn.0040f930
push eax
push 0x2b4
jmp 0x59e931
cmp dword [eax*4 + 0x79454c], 0x551
jne 0x59e84b
mov eax, dword [esp + esi*4 + 0x44]
mov ecx, dword [eax*4 + 0x794430]
push ecx
jmp 0x59e920
cmp dword [eax*4 + 0x79454c], 0x55c
jne 0x59e9db
mov edx, dword [esp + esi*4 + 0x44]
mov eax, dword [edx*4 + 0x794430]
push eax
jmp 0x59e9a9
test byte [eax*4 + 0x747d88], 2
je 0x59e9bc
cmp dword [eax*4 + 0x79454c], 0x514
jne 0x59e8c1
mov ecx, dword [esp + esi*4 + 0x44]
mov edx, dword [ecx*4 + 0x794410]
mov ecx, dword [0x7c67dc]
push edx
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push 0x2b0
call fcn.0040f930
push eax
push 0x793130
push ebx
call ebp
add esp, 0x10
jmp 0x59e9db
cmp dword [eax*4 + 0x79454c], 0x519
jne 0x59e907
mov eax, dword [esp + esi*4 + 0x44]
mov ecx, dword [eax*4 + 0x794410]
push ecx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push 0x2b4
call fcn.0040f930
push eax
push 0x793130
push ebx
call ebp
add esp, 0x10
jmp 0x59e9db
cmp dword [eax*4 + 0x79454c], 0x54d
jne 0x59e94d
mov edx, dword [esp + esi*4 + 0x44]
mov eax, dword [edx*4 + 0x794410]
push eax
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b3
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x793130
push ebx
call ebp
add esp, 0x10
jmp 0x59e9db
cmp dword [eax*4 + 0x79454c], 0x552
jne 0x59e990
mov ecx, dword [esp + esi*4 + 0x44]
mov edx, dword [ecx*4 + 0x794410]
push edx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b2
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x793130
push ebx
call ebp
add esp, 0x10
jmp 0x59e9db
cmp dword [eax*4 + 0x79454c], 0x558
jne 0x59e9db
mov eax, dword [esp + esi*4 + 0x44]
mov ecx, dword [eax*4 + 0x794410]
push ecx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b1
jmp 0x59e977
mov edx, dword [eax*4 + 0x79454c]
mov ecx, dword [0x7c67dc]
push edx
call fcn.0040f930
push eax
push 0x775998
push ebx
call ebp
add esp, 0xc
test esi, esi
jne 0x59eb0e
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ax, word [0x7d22b6]
push eax
call fcn.00582de0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov byte [ebp], cl
mov dword [esp + 0x40], eax
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [esp + 0x44], esp
mov dword [esp + 0x44], edi
jbe 0x59ea2f
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov eax, dword [ebp + 4]
cmp eax, esi
je 0x59ea5d
mov cl, byte [eax - 1]
test cl, cl
je 0x59ea5d
cmp cl, 0xff
je 0x59ea5d
cmp edi, esi
jne 0x59eaca
dec cl
mov byte [eax - 1], cl
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x59eaf7
cmp edi, esi
jne 0x59ea95
cmp eax, esi
je 0x59ea8a
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x59ea81
cmp al, 0xff
je 0x59ea81
dec al
mov byte [ecx], al
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x59eaf7
push ecx
call fcn.00727530
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x59eaf7
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x1f
ja 0x59eaa1
cmp ecx, edi
jae 0x59ead3
cmp eax, esi
je 0x59eac1
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x59eab8
cmp al, 0xff
je 0x59eab8
dec al
mov byte [ecx], al
jmp 0x59eac1
push ecx
call fcn.00727530
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov eax, dword [esp + 0x44]
mov edi, dword [ebp + 4]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
add eax, ecx
mov byte [eax], 0
mov eax, dword [esp + 0x40]
push eax
call fcn.00745b00
mov esi, dword [esp + 0x4c]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
cmp esi, dword [esp + 0x14]
push 0
push 0
jge 0x59eb1b
push ebx
jmp 0x59eb2c
mov ecx, dword [0x7c67dc]
push 0x310
call fcn.0040f930
push eax
mov ecx, dword [esp + 0x24]
push 0xffff80b4
call fcn.00588be0
mov eax, dword [esp + 0x68]
inc esi
cmp esi, eax
mov dword [esp + 0x38], esi
jb 0x59e6f8
mov ecx, dword [esp + 0x1c]
push 1
call fcn.00583b70
lea ecx, [esp + 0x64]
call fcn.0047e6f0
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 0xffffffff
call fcn.0047e280
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret