Function at 0x409e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b97c9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 0x4bee38
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
push eax
lea edx, [esp + 0x20]
xor bl, bl
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
mov byte [esp + 0x23], bl
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x409fe5
push 2
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR80.dll_ftell]
cdq
add esp, 4
mov ebx, edx
mov edx, dword [esi]
push 0
mov edi, eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, edi
sub eax, dword [esi]
mov ecx, ebx
sbb ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
js 0x409fe1
jg 0x409eca
test eax, eax
jbe 0x409fe1
test ebx, ebx
jl 0x409ee2
jg 0x409ed8
cmp edi, 0x19000
jbe 0x409ee2
mov dword [esp + 0x1c], 0x19000
jmp 0x409ee6
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push 1
push eax
push 0x4d7138
call dword [sym.imp.MSVCR80.dll_fread]
mov eax, dword [esp + 0x2c]
cdq
mov ecx, edx
add esp, 0x10
xor edi, edi
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jb 0x409fd7
ja 0x409f34
test eax, eax
jbe 0x409fd7
jmp 0x409f34
mov ecx, dword [esp + 0x20]
mov esi, dword [edi + 0x4d7138]
test esi, esi
je 0x409fd3
mov eax, esi
cdq
add eax, edi
adc edx, ebx
cmp edx, ecx
ja 0x409fd3
jb 0x409f59
cmp eax, dword [esp + 0x1c]
ja 0x409fd3
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
lea eax, [esi - 4]
push eax
lea esi, [edi + 0x4d713c]
push esi
add ecx, 4
push eax
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [edi + 0x4d7138]
sub ecx, 4
push ecx
push esi
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x64], 0
call fcn.0040a6f0
mov eax, dword [edi + 0x4d7138]
cdq
add edi, eax
lea ecx, [esp + 0x34]
adc ebx, edx
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebx, dword [esp + 0x20]
jb 0x409f30
ja 0x409fd3
cmp edi, dword [esp + 0x1c]
jb 0x409f30
mov esi, dword [esp + 0x28]
add dword [esi], edi
mov byte [esp + 0x17], 1
adc dword [esi + 4], ebx
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409ff7
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret 0xc