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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x659ba858
mov eax, dword [ecx]
call dword [eax + 0x14]
xor edx, edx
test eax, eax
cmovns edx, eax
setle cl
mov dword [esp + 0x28], edx
mov eax, ebp
mov dword [ebx], 0xffffffff
or eax, edi
mov dword [ebx + 4], 0xffffffff
setne al
mov dword [ebx + 8], 0
and eax, ecx
lea ecx, [esi + 0x28]
mov byte [esp + 0x24], al
mov dword [esp + 0x2c], ecx
call dbg.std::__basic_file<char>::is_open() const
xor eax, 1
or al, byte [esp + 0x24]
je 0x659ba870
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 0x28], 0
mov ecx, 1
jmp 0x659ba80f
cmp dword [esp + 0x7c], 1
mov eax, ebp
sete cl
or eax, edi
sete al
and cl, al
mov byte [esp + 0x24], cl
je 0x659ba950
cmp byte [esi + 0x4a], 0
jne 0x659ba940
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
je 0x659baa30
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x659baa43
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add edi, eax
adc ebp, edx
cmp byte [esp + 0x24], 0
je 0x659baa78
cmp byte [esi + 0x4a], 0
je 0x659ba8ea
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov ebp, eax
mov edi, eax
sar ebp, 0x1f
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], 0
call dbg.std::__basic_file<char>::seekoff(long long, std::_Ios_Seekdir)
mov ecx, eax
sub esp, 0xc
and ecx, edx
cmp ecx, 0xffffffff
je 0x659ba845
add eax, edi
mov dword [ebx], eax
mov eax, dword [esp + 0x3c]
adc edx, ebp
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x659baa10
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x34]
cdq
mov eax, edx
mov edx, dword [esp + 0x28]
imul eax, ebp
imul edi, edx
add eax, edi
mov dword [esp + 0x24], eax
mov eax, edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x24]
mov ebp, edx
movzx edx, byte [esi + 0x49]
add ebp, eax
cmp byte [esi + 0x54], 0
je 0x659baa00
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
mov byte [esi + 0x54], 0
setne al
movd xmm0, dword [esi + 0x40]
mov dword [esp + 0x3c], ecx
movzx eax, al
add eax, dword [esi + 0x4c]
movd xmm1, eax
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x50]
punpckldq xmm0, xmm1
mov dword [esi + 0xc], eax
movq qword [esi + 4], xmm0
test dl, dl
je 0x659ba9bf
cmp dword [esp + 0x7c], 1
je 0x659baa39
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp], esi
call dbg.std::basic_filebuf<char, std::char_traits<char> >::_M_seek(long long, std::_Ios_Seekdir, int)
sub esp, 0x14
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x659ba845
mov dword [esp + 0x3c], ecx
test dl, dl
je 0x659ba9bf
jmp 0x659ba9b8
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
jne 0x659ba8a6
xor edi, edi
xor ebp, ebp
jmp 0x659ba8d7
xor edi, edi
xor ebp, ebp
jmp 0x659ba8ea
mov byte [esp + 0x24], 0
jmp 0x659ba8aa
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 8]
sub edx, dword [esi + 4]
mov eax, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 8], edx
mov edx, dword [esi + 0x5c]
mov dword [esp + 4], edx
lea edx, [esp + 0x3c]
mov dword [esp], edx
call dword [eax + 0x1c]
add eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x68]
sub esp, 0x10
jmp 0x659ba8c7
mov ecx, dword [esp + 0x3c]
jmp 0x659ba9bf