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

Disassembly:
test byte [ecx + 0x30], 8
je 0x4b9770
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
cmp byte [ecx + 0x56], 0
jne 0x4b96f0
cmp byte [ebx + 0x64], 0
mov eax, dword [ecx + 8]
jne 0x4b9734
mov edx, dword [ebx + 0xc]
cmp eax, edx
jb 0x4b9760
mov esi, dword [ebx + 0x50]
mov eax, 2
mov ecx, dword [ebx + 0x68]
cmp esi, eax
cmovb esi, eax
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x4b99b9
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x4b9780
mov ecx, dword [ebx + 0x68]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebp, eax
test eax, eax
jle 0x4b98c0
mov eax, dword [esp + 0x24]
imul ebp, eax
mov eax, ebp
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x78]
mov esi, eax
sub edx, ecx
sub esi, edx
cmp eax, edx
mov eax, 0
cmovle esi, eax
cmp byte [ebx + 0x55], 0
mov eax, dword [ebx + 0x70]
je 0x4b9587
mov edi, dword [ebx + 0xc]
cmp dword [ebx + 4], edi
je 0x4b998a
cmp ebp, eax
jg 0x4b98d8
test edx, edx
jne 0x4b9948
mov edi, dword [ebx + 0x6c]
lea eax, [edi + edx]
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x44], edx
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x48], ecx
add edx, edx
mov dword [esp + 0x28], edx
test esi, esi
jne 0x4b9970
mov edx, dword [ebx + 4]
mov ecx, edi
xor edi, edi
mov dword [esp + 0x3c], edx
cmp ecx, eax
jae 0x4b964a
xor esi, esi
lea esi, [esi]
mov edi, dword [ebx + 0x68]
lea ebp, [esp + 0x3c]
mov edi, dword [edi]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
lea eax, [ebx + 0x3c]
add ebp, edx
lea edx, [ebx + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov ecx, dword [ebx + 0x68]
call dword [edi + 0x10]
sub esp, 0x1c
mov edi, eax
cmp eax, 3
je 0x4b97d0
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x2c], ecx
sar ecx, 1
mov ebp, ecx
cmp edi, 2
je 0x4b98a0
mov ecx, esi
test cl, cl
jne 0x4b99be
cmp edx, eax
jne 0x4b99be
mov eax, dword [ebx + 0x78]
mov esi, 1
mov edx, eax
sub edx, dword [ebx + 0x6c]
add edx, esi
cmp edx, dword [ebx + 0x70]
jg 0x4b99ad
mov dword [esp + 4], esi
lea ecx, [ebx + 0x28]
mov dword [esp], eax
call method.std::__basic_file_char_.xsgetn_char__int_
sub esp, 8
test eax, eax
je 0x4b97f8
cmp eax, 0xffffffff
je 0x4b9838
xor esi, esi
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x74]
add eax, dword [ebx + 0x78]
mov dword [ebx + 0x78], eax
mov dword [esp + 0x3c], edx
cmp ecx, eax
jb 0x4b95d8
cmp edi, 3
je 0x4b97d6
mov eax, esi
test al, al
je 0x4b964a
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x55], 0
cmp edi, 1
jne 0x4b97c8
mov dword [esp], str.basic_filebuf::underflow_incomplete_character_in_file
call method.std.__throw_ios_failure_char_const_
lea esi, [esi]
nop
mov eax, dword [ecx]
mov dword [esp], 0xffff
call dword [eax + 0x34]
sub esp, 4
cmp ax, 0xffff
je 0x4b9763
mov eax, dword [ebx + 0x4c]
cmp byte [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x56], 0
je 0x4b950a
xor edx, edx
cmp dword [ebx + 4], eax
mov eax, dword [ebx + 0x5c]
mov byte [ebx + 0x64], 0
setne dl
mov ecx, dword [ebx + 0x4c]
lea eax, [eax + edx*2]
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
cmp eax, edx
jae 0x4b9515
movzx eax, word [eax]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
ret
mov eax, dword [esp + 0x24]
lea ecx, [ebx + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call method.std::__basic_file_char_.xsgetn_char__int_
sub esp, 8
mov ebp, eax
test eax, eax
jne 0x4b9860
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x55], 0
mov eax, 0xffffffff
jmp 0x4b9763
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x6c]
sub eax, ecx
mov ebp, eax
cmp dword [esp + 0x24], eax
jb 0x4b9808
test eax, eax
jne 0x4b9850
mov dword [ebx + 0x74], ecx
mov edi, 3
jmp 0x4b96a8
mov esi, 1
jmp 0x4b9687
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esp + 0x24]
add eax, dword [ebx + 0x6c]
mov dword [ebx + 0x74], eax
test ebp, ebp
jg 0x4b9868
mov eax, esi
test al, al
jne 0x4b9980
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp], str.basic_filebuf::underflow_error_reading_the_file
mov dword [esp + 4], eax
call method.std.__throw_ios_failure_char_const__int_
lea eax, [eax + eax]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
jmp 0x4b980c
jle 0x4b9838
lea esi, [esi]
mov eax, dword [ebx + 0x4c]
test byte [ebx + 0x30], 8
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
lea edx, [eax + ebp*2]
mov dword [ebx + 4], eax
cmove edx, eax
mov dword [ebx + 8], eax
movzx eax, word [eax]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0xc], edx
mov byte [ebx + 0x55], 1
jmp 0x4b9763
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x4b9868
mov eax, esi
test al, al
jne 0x4b96ae
mov dword [esp], str.basic_filebuf::underflow_invalid_byte_sequence_in_file
call method.std.__throw_ios_failure_char_const_
nop
mov ecx, dword [ebx + 0x68]
mov eax, dword [ecx]
call dword [eax + 0x20]
lea ebp, [esi + eax - 2]
mov eax, dword [esp + 0x24]
jmp 0x4b955c
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call sym.operator_new___unsigned_int_
mov edx, dword [esp + 0x28]
mov edi, eax
test edx, edx
jne 0x4b9928
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x4b9905
mov dword [esp], eax
mov dword [esp + 0x28], edx
call sym.operator_delete___void_
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x6c], edi
mov dword [ebx + 0x70], ebp
jmp 0x4b959a
xor esi, esi
cmp ebp, eax
jle 0x4b9948
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call sym.operator_new___unsigned_int_
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x28], edx
call sym._memcpy
mov edx, dword [esp + 0x28]
jmp 0x4b98ee
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sym._memmove
mov edi, dword [ebx + 0x6c]
mov edx, dword [esp + 0x28]
jmp 0x4b959a
xor edi, edi
jmp 0x4b9652
mov edi, 3
jmp 0x4b96ae
test edx, edx
jne 0x4b9910
cmp ebp, eax
jle 0x4b9597
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call sym.operator_new___unsigned_int_
mov edx, dword [esp + 0x28]
mov edi, eax
jmp 0x4b98ee
mov dword [esp], str.basic_filebuf::underflow_codecvt::max_length___is_not_valid
call method.std.__throw_ios_failure_char_const_
call method.std.__throw_bad_cast__
cmp dword [esp + 0x2c], 0
jg 0x4b9868
mov eax, esi
test al, al
je 0x4b9838
jmp 0x4b96ae