Function at 0x409ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9809
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
push 0x19000
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
call fcn.004b76d4
add esp, 4
push 0x4bee38
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
cmp eax, edi
jne 0x409dbc
mov edx, dword [esp + 0x18]
push 2
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push edx
call edi
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
mov ecx, dword [esp + 0x1c]
add esp, 4
cdq
push 0
mov esi, eax
push 0
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
call edi
add esp, 0xc
cmp dword [esp + 0x20], 0
jl 0x409db5
jg 0x409c8a
test esi, esi
jbe 0x409db5
jmp 0x409c8a
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
cmp dword [esp + 0x20], 0
jl 0x409ca0
jg 0x409c9b
cmp esi, 0x19000
jbe 0x409ca0
mov esi, 0x19000
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call edi
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push 1
push esi
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
mov eax, esi
cdq
xor edi, edi
add esp, 0x10
test edx, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
jb 0x409d86
ja 0x409ce6
test eax, eax
jbe 0x409d86
mov esi, dword [edi + ebx]
test esi, esi
je 0x409d86
mov eax, esi
cdq
add eax, edi
adc edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x30]
ja 0x409d86
jb 0x409d0c
cmp eax, dword [esp + 0x2c]
ja 0x409d86
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
lea eax, [esi - 4]
push eax
lea esi, [edi + ebx + 4]
push esi
add ecx, 4
push eax
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [edi + ebx]
sub ecx, 4
push ecx
push esi
lea ecx, [esp + 0x4c]
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 + 0x40]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x74], 0
call fcn.0040a6f0
mov eax, dword [edi + ebx]
mov esi, dword [esp + 0x38]
cdq
add edi, eax
adc esi, edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], esi
mov dword [esp + 0x70], 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 esi, dword [esp + 0x30]
jb 0x409ce6
ja 0x409d86
cmp edi, dword [esp + 0x2c]
jb 0x409ce6
sub dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
sbb eax, ecx
add dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
adc dword [esp + 0x28], ecx
test eax, eax
jg 0x409c80
jl 0x409db5
cmp dword [esp + 0x1c], 0
ja 0x409c80
mov byte [esp + 0x17], 1
xor edi, edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x409dce
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call fcn.004b7ab6
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004b76e6
mov esp, ebp
pop ebp
ret 8