Function at 0x409e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7b4
push ebx
push ebp
push esi
push edi
push 0
call fcn.00408fa0
mov eax, dword [0x5443c4]
add esp, 4
test eax, eax
jne 0x409ea9
push 0x1eea
push 2
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ebp, dword [esp + 0x7c8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 1
push eax
push 0
push ebp
mov dword [esp + 0x24], 0
call esi
push 0
push 0
mov ebx, eax
push 0
push ebp
mov dword [esp + 0x20], ebx
call esi
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x3e5]
mov byte [esp + 0x3e4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3e4]
push 0x3e0
push ecx
push ebp
stosb byte es:[edi], al
call fcn.0040daf0
add esp, 0xc
lea edx, [esp + 0x14]
mov edi, eax
push 0
push edx
push ebx
push ebp
call esi
test edi, edi
jne 0x409f37
push 0x1efe
push 0xf
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x3e4]
push eax
push ecx
call fcn.0040d4d0
add esp, 8
test eax, eax
jne 0x409f81
push 0x1f06
push 0x14
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
lea edx, [esp + 0x5c]
push edx
call fcn.00413fb0
add esp, 4
test eax, eax
jne 0x409fae
push 0x1f0d
push 0x1f
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov edi, dword [esp + 0x7cc]
test edi, edi
je 0x409fc4
mov ecx, 0xe2
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x7d0]
mov edx, dword [esp + 0x7d8]
test edi, edi
jne 0x409fea
test edx, edx
jne 0x409fea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7b4
ret
mov eax, dword [esp + 0x3dc]
mov ecx, dword [esp + 0x7d4]
test eax, eax
jne 0x40a026
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
je 0x40a016
mov dword [edx], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7b4
ret
cmp ecx, eax
jae 0x40a042
test edx, edx
je 0x40a030
mov dword [edx], eax
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x7b4
ret
push eax
call fcn.004da41d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40a06d
push 0x1f31
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ecx, dword [esp + 0x3dc]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3d8]
lea eax, [esp + 0x3dc]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x3dc]
lea edx, [esp + 0x18]
push esi
push edx
push eax
push ebx
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push esi
push ecx
push edx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x40a1d9
mov eax, dword [esp + 0x3e0]
mov ecx, dword [esp + 0x3dc]
push eax
push ecx
push ebx
call fcn.004170a0
add esp, 0xc
test eax, eax
je 0x40a1e2
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x404]
lea edx, [esp + 0x1c]
push 0x40
push edx
push eax
call fcn.00409c50
add esp, 0xc
test eax, eax
jne 0x40a15e
mov eax, dword [esp + 0x3dc]
mov edi, dword [esp + 0x7d0]
mov ecx, eax
mov esi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x7d8]
test ecx, ecx
je 0x40a154
mov dword [ecx], eax
mov esi, 1
jmp 0x40a1f1
push eax
call fcn.00408aa0
mov edx, eax
add esp, 4
test edx, edx
je 0x40a1d0
mov ecx, dword [esp + 0x7d4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x7d4]
push ecx
mov ecx, dword [esp + 0x3e4]
push eax
push ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x30]
push ecx
push eax
mov ecx, edx
mov dword [esp + 0x2c], 0
call dword [esi + 0x14]
mov esi, eax
test esi, esi
je 0x40a1c7
mov eax, dword [esp + 0x7d8]
test eax, eax
je 0x40a1f1
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x40a1f1
push 0x1f6f
push 0x12
jmp 0x40a1e9
push 0x1f74
push 0xc
jmp 0x40a1e9
push 0x1f43
push 0xd
jmp 0x40a1e9
push 0x1f4a
push 0x1c
call fcn.00408f80
add esp, 8
push ebx
call fcn.004da446
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret