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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x18]
push ebx
sub esp, 0xac
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x74], sym.___gxx_personality_sj0
mov dword [ebp - 0x70], 0x5c6a80
mov dword [ebp - 0x68], 0x59cda5
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [edi], eax
mov edx, dword [eax - 0xc]
mov ecx, dword [esi + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + edx], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov esi, dword [eax - 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
add esi, edi
mov eax, dword [eax]
mov ecx, esi
add edx, dword [eax - 0xc]
mov dword [ebp - 0x98], edx
mov dword [esp], edx
mov dword [ebp - 0x94], esi
call method.std::ios_base._M_move_std::ios_base_
mov ebx, dword [ebp - 0x94]
sub esp, 4
lea eax, [ebx + 0x6c]
mov ecx, ebx
mov dword [esp], eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], 0xffffffff
call method.std::basic_ios_wchar_t__std::char_traits_wchar_t___._M_cache_locale_std::locale_const_
mov edx, dword [ebp - 0x98]
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
sub esp, 4
mov eax, dword [edx + 0x70]
mov dword [edx + 0x70], 0
mov dword [ebx + 0x70], eax
movzx eax, word [edx + 0x74]
mov word [ebx + 0x74], ax
movzx eax, byte [edx + 0x76]
mov dword [ebx + 0x78], 0
mov byte [ebx + 0x76], al
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [eax - 0xc]
mov edx, dword [ebx + 0xc]
mov dword [edi + eax], edx
lea eax, [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
add edi, 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0xffffffff
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
test eax, eax
je 0x59cd70
sub eax, edx
sar eax, 1
mov dword [ebp - 0x48], eax
sar eax, 0x1f
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x9c], eax
sub eax, edx
sar eax, 1
mov dword [ebp - 0x40], eax
sar eax, 0x1f
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov ecx, eax
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x38], ecx
sar ecx, 0x1f
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x59cbf8
mov ebx, ecx
sub ebx, edx
sar ebx, 1
mov dword [ebp - 0x30], ebx
sar ebx, 0x1f
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x1c]
mov esi, ebx
sub esi, ecx
mov ecx, esi
mov esi, dword [ebp + 0xc]
sar ecx, 1
mov dword [ebp - 0x28], ecx
sar ecx, 0x1f
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x9c], ecx
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x20], ecx
sar ecx, 0x1f
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
cmovb eax, ebx
test eax, eax
je 0x59cc06
sub eax, edx
mov ebx, dword [ebp + 0xc]
sar eax, 1
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], 1
call fcn.00572bc0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x90]
sub esp, 4
mov eax, dword [eax + 0x28]
lea ecx, [esi + 0x34]
mov dword [esi + 8], 0x5fa0b4
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x2c]
add eax, 0x34
cmp edx, eax
je 0x59cd85
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x2c], edx
mov edx, dword [ecx + 0x34]
mov dword [edi + 0x34], edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x90]
xor ecx, ecx
mov edx, dword [esi + 0x30]
mov dword [edi + 0x30], edx
mov edx, dword [ebp - 0x44]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x48]
mov word [esi + 0x34], cx
mov ecx, dword [ebp - 0x50]
and edx, eax
mov dword [esi + 0x30], 0
mov ebx, dword [ecx + 0x24]
cmp edx, 0xffffffff
je 0x59ccb0
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
lea eax, [ebx + eax*2]
mov dword [ecx + 4], eax
lea edx, [ebx + edx*2]
lea esi, [ebx + esi*2]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
and eax, esi
cmp eax, 0xffffffff
je 0x59cd13
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
lea edi, [ebx + edi*2]
lea ebx, [ebx + esi*2]
mov esi, 0x7fffffff
cmp esi, eax
mov esi, 0
mov dword [ecx + 0x14], ebx
sbb esi, edx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x18], edi
jge 0x59cd0d
lea esi, [ebx - 2]
nop
lea esi, [esi]
add eax, 0x80000001
mov edi, 0x7fffffff
mov ebx, esi
adc edx, 0xffffffff
sub esi, 2
cmp edi, eax
mov edi, 0
sbb edi, edx
jl 0x59ccf0
lea eax, [ebx + eax*2]
mov dword [ecx + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x98]
call method.std::__cxx11::basic_stringbuf_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_sync_wchar_t__unsigned_int__unsigned_int_
mov ecx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
sub esp, 0xc
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
mov dword [ecx + eax + 0x78], esi
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
xor eax, eax
test ecx, ecx
jne 0x59cbb4
jmp 0x59cc06
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x34]
mov dword [esi + 0x34], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
mov edx, dword [eax + 8]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x40], edx
jmp 0x59cc66