Function at 0x4bad30
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 0x4bada8
mov eax, dword [ecx]
call dword [eax + 0x14]
xor edx, edx
test eax, eax
cmovns edx, eax
setle cl
mov dword [esp + 0x2c], 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 + 0x28], ecx
call dbg.std::__basic_file<char>::is_open() const
xor eax, 1
or al, byte [esp + 0x24]
je 0x4badc0
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 0x2c], 0
mov ecx, 1
jmp 0x4bad5f
cmp dword [esp + 0x7c], 1
mov eax, ebp
sete cl
or eax, edi
sete al
and cl, al
mov byte [esp + 0x24], cl
je 0x4baea0
cmp byte [esi + 0x4a], 0
jne 0x4bae90
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
je 0x4baf80
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 0x4baf93
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add edi, eax
adc ebp, edx
cmp byte [esp + 0x24], 0
je 0x4bafc8
cmp byte [esi + 0x4a], 0
je 0x4bae3a
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 + 0x28]
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 0x4bad95
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 0x4baf60
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x24], eax
mov eax, ecx
imul edi, ecx
cdq
mov eax, edx
imul eax, ebp
add eax, edi
mov dword [esp + 0x2c], eax
mov eax, ecx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x2c]
mov ebp, edx
movzx edx, byte [esi + 0x49]
add ebp, eax
cmp byte [esi + 0x54], 0
je 0x4baf50
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
mov byte [esi + 0x54], 0
setne al
mov ecx, dword [esi + 0x40]
movzx eax, al
add eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
test dl, dl
je 0x4baf0c
cmp dword [esp + 0x7c], 1
je 0x4baf89
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edi
lea ecx, [esp + 0x40]
mov dword [esp + 8], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], esi
mov dword [esp + 0xc], eax
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 dword [ebx], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 8], eax
jmp 0x4bad95
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
test dl, dl
je 0x4baf0c
jmp 0x4baf05
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
jne 0x4badf6
xor edi, edi
xor ebp, ebp
jmp 0x4bae27
xor edi, edi
xor ebp, ebp
jmp 0x4bae3a
mov byte [esp + 0x24], 0
jmp 0x4badfa
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 0x4bae17
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jmp 0x4baf0c