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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov eax, dword [0x50f0e8]
mov dword [esp + 0x4c], eax
xor eax, eax
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x485d20
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, edi
lea edx, [ebp + 0x24]
mov dword [ebx], 0xffffffff
or eax, esi
mov dword [ebx + 4], 0xffffffff
setne al
mov dword [ebx + 8], 0
and eax, ecx
mov ecx, edx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x24], al
call method.std::__basic_file_char_.is_open___const
cmp al, 1
jne 0x485c58
cmp byte [esp + 0x24], 0
je 0x485c78
mov eax, dword [esp + 0x4c]
sub eax, dword [0x50f0e8]
jne 0x485e4d
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
cmp dword [esp + 0x7c], 1
jne 0x485d50
mov eax, edi
or eax, esi
jne 0x485d50
cmp byte [ebp + 0x46], 0
jne 0x485d38
mov eax, dword [ebp + 0x30]
cmp byte [ebp + 0x45], 0
mov dword [esp + 0x34], eax
je 0x485e20
mov eax, dword [ebp + 0x38]
mov ecx, ebp
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov dword [esp], eax
call method.std::basic_filebuf_char__std::char_traits_char___._M_get_ext_pos_int_
mov edi, eax
sub esp, 4
mov esi, eax
sar edi, 0x1f
cmp byte [ebp + 0x46], 0
je 0x485cd8
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp + 0x10]
mov edi, esi
sar edi, 0x1f
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], 0
call method.std::__basic_file_char_.seekoff_long_long__std::_Ios_Seekdir_
mov ecx, eax
sub esp, 0xc
and ecx, edx
cmp ecx, 0xffffffff
je 0x485c58
add eax, esi
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
adc edx, edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x485c58
mov dword [esp + 0x28], 0
mov ecx, 1
jmp 0x485c1e
mov ecx, dword [ebp + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x485e00
lea esi, cs:[esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x30]
cdq
mov eax, dword [esp + 0x28]
imul edx, edi
imul eax, esi
lea esi, [edx + eax]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mul edi
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, edx
movzx edx, byte [ebp + 0x45]
add edi, eax
cmp byte [ebp + 0x50], 0
je 0x485db1
mov eax, dword [ebp + 4]
cmp dword [ebp + 8], eax
mov byte [ebp + 0x50], 0
setne al
movd xmm0, dword [ebp + 0x3c]
movzx eax, al
add eax, dword [ebp + 0x48]
movd xmm1, eax
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x4c]
punpckldq xmm0, xmm1
mov dword [ebp + 0xc], eax
movq qword [ebp + 4], xmm0
mov dword [esp + 0x34], ecx
test dl, dl
je 0x485dc4
cmp dword [esp + 0x7c], 1
je 0x485e29
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], ebp
call method.std::basic_filebuf_char__std::char_traits_char___._M_seek_long_long__std::_Ios_Seekdir__int_
sub esp, 0x14
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x485c58
mov eax, dword [ebp + 0x30]
cmp byte [ebp + 0x45], 0
mov dword [esp + 0x34], eax
jne 0x485ca8
xor esi, esi
xor edi, edi
jmp 0x485cc7
xor esi, esi
xor edi, edi
jmp 0x485cd8
mov eax, dword [ebp + 0x38]
mov ecx, ebp
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov dword [esp], eax
call method.std::basic_filebuf_char__std::char_traits_char___._M_get_ext_pos_int_
push edx
cdq
add esi, eax
mov ecx, dword [esp + 0x34]
adc edi, edx
jmp 0x485dc4
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop