Function at 0x59e530
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], 0x5c69c4
mov dword [ebp - 0x68], 0x59e8b2
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [edi], eax
mov esi, dword [eax - 0xc]
mov eax, dword [ebp + 8]
add esi, edi
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov dword [ebp - 0x98], ecx
mov dword [esp], ecx
mov ecx, esi
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_char__std::char_traits_char___._M_cache_locale_std::locale_const_
mov ecx, dword [ebp - 0x98]
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp + 8]
sub esp, 4
mov eax, dword [ecx + 0x70]
mov dword [ecx + 0x70], 0
mov dword [ebx + 0x70], eax
movzx eax, byte [ecx + 0x74]
mov byte [ebx + 0x74], al
movzx eax, byte [ecx + 0x75]
mov dword [ebx + 0x78], 0
mov byte [ebx + 0x75], al
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [eax - 0xc]
mov edx, dword [edx + 0xc]
mov dword [edi + eax], edx
mov edx, dword [ebp + 0xc]
lea eax, [edi + 4]
mov dword [ebp - 0x94], eax
lea edi, [edx + 4]
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 dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], 0xffffffff
mov ebx, dword [edx + 0x28]
test eax, eax
je 0x59e880
sub eax, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
sar eax, 0x1f
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x9c], eax
sub eax, ebx
mov dword [ebp - 0x40], eax
sar eax, 0x1f
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov edx, eax
sub edx, ebx
mov dword [ebp - 0x38], edx
sar edx, 0x1f
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x14]
test edx, edx
je 0x59e713
mov ecx, edx
mov esi, dword [ebp + 0xc]
sub ecx, ebx
mov dword [ebp - 0x30], ecx
sar ecx, 0x1f
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x18]
mov esi, ecx
sub esi, edx
mov edx, esi
mov dword [ebp - 0x28], esi
sar edx, 0x1f
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x1c]
mov edx, esi
mov dword [ebp - 0x9c], esi
sub edx, ebx
mov dword [ebp - 0x20], edx
sar edx, 0x1f
cmp eax, ecx
mov dword [ebp - 0x1c], edx
cmovb eax, ecx
test eax, eax
je 0x59e71f
sub eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], 1
call fcn.005721d0
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esi + 4], 0x5fa074
mov eax, dword [eax + 0x24]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
add eax, 0x30
cmp edx, eax
je 0x59e892
mov ebx, dword [ebp - 0x90]
mov dword [ebx + 0x28], edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x30]
mov dword [ebx + 0x30], edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x48]
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x2c], edx
mov edx, dword [ebp - 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x2c], 0
and eax, ecx
mov byte [esi + 0x30], 0
mov esi, dword [edx + 0x24]
cmp eax, 0xffffffff
je 0x59e7c4
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
add ecx, esi
mov dword [edx + 4], ecx
add eax, esi
add ebx, esi
mov dword [edx + 8], ebx
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
and ecx, eax
cmp ecx, 0xffffffff
je 0x59e826
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, esi
mov ebx, dword [ebp - 0x24]
mov dword [edx + 0x14], eax
add edi, esi
mov esi, 0x7fffffff
mov dword [edx + 0x10], eax
cmp esi, ecx
mov esi, 0
mov dword [edx + 0x18], edi
sbb esi, ebx
jge 0x59e821
lea esi, [eax + 0x7fffffff]
lea esi, [esi]
add ecx, 0x80000001
mov edi, 0x7fffffff
mov eax, esi
adc ebx, 0xffffffff
add esi, 0x7fffffff
cmp edi, ecx
mov edi, 0
sbb edi, ebx
jl 0x59e800
add eax, ecx
mov dword [edx + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
mov dword [esp], eax
mov ecx, dword [ebp - 0x98]
call method.std::__cxx11::basic_stringbuf_char__std::char_traits_char___std::allocator_char___._M_sync_char__unsigned_int__unsigned_int_
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
sub esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
mov dword [edi + 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 edx, dword [edx + 0x14]
xor eax, eax
test edx, edx
jne 0x59e6d3
jmp 0x59e71f
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x34], edx
mov edx, dword [eax + 8]
mov dword [esi + 0x38], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x3c], edx
jmp 0x59e77f