Function at 0x4bd0a0
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 + 0x5c]
test ecx, ecx
je 0x4bd118
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 0x4bd130
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 0x4bd0cf
cmp dword [esp + 0x7c], 1
mov eax, ebp
sete cl
or eax, edi
sete al
and cl, al
mov byte [esp + 0x24], cl
je 0x4bd210
cmp byte [esi + 0x4a], 0
jne 0x4bd200
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
je 0x4bd2f0
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x4bd303
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
sar eax, 1
cdq
add edi, eax
adc ebp, edx
cmp byte [esp + 0x24], 0
je 0x4bd33a
cmp byte [esi + 0x4a], 0
je 0x4bd1ae
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 1
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 0x4bd105
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 + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x4bd2d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x34]
mov eax, ecx
mov dword [esp + 0x24], edx
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
add ebp, eax
cmp byte [esi + 0x58], 0
movzx eax, byte [esi + 0x49]
je 0x4bd2c0
mov edx, dword [esi + 4]
cmp dword [esi + 8], edx
mov byte [esi + 0x58], 0
mov ecx, dword [esi + 0x50]
setne dl
movzx edx, dl
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x50], edx
mov dword [esi + 8], edx
mov edx, dword [esi + 0x54]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
test al, al
je 0x4bd27f
cmp dword [esp + 0x7c], 1
je 0x4bd2f9
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<wchar_t, std::char_traits<wchar_t> >::_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 0x4bd105
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
test al, al
je 0x4bd27f
jmp 0x4bd278
mov eax, dword [esi + 0x34]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x3c], eax
jne 0x4bd166
xor edi, edi
xor ebp, ebp
jmp 0x4bd199
xor edi, edi
xor ebp, ebp
jmp 0x4bd1ae
mov byte [esp + 0x24], 0
jmp 0x4bd16a
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 8]
sub edx, dword [esi + 4]
sar edx, 1
mov eax, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x68]
mov dword [esp + 8], edx
mov edx, dword [esi + 0x60]
mov dword [esp + 4], edx
lea edx, [esp + 0x3c]
mov dword [esp], edx
call dword [eax + 0x1c]
add eax, dword [esi + 0x60]
sub eax, dword [esi + 0x6c]
sub esp, 0x10
jmp 0x4bd189
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jmp 0x4bd27f