Function at 0x4098c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7b8
push ebx
push ebp
push esi
push edi
push 0
call fcn.00408fa0
mov eax, dword [0x5443c4]
add esp, 4
test eax, eax
jne 0x4098f9
push 0x1e30
push 2
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret
mov esi, dword [esp + 0x7cc]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 1
push eax
push 0
push esi
mov dword [esp + 0x28], 0
call ebp
push 0
push 0
mov ebx, eax
push 0
push esi
mov dword [esp + 0x20], ebx
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x3e9]
mov byte [esp + 0x3e8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3e8]
push 0x3e0
push ecx
push esi
stosb byte es:[edi], al
call fcn.0040daf0
add esp, 0xc
lea edx, [esp + 0x18]
mov edi, eax
push 0
push edx
push ebx
push esi
call ebp
test edi, edi
jne 0x409987
push 0x1e44
push 0xf
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
lea ecx, [esp + 0x3e8]
push eax
push ecx
call fcn.0040d4d0
add esp, 8
test eax, eax
jne 0x4099d1
push 0x1e4c
push 0x14
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret
lea edx, [esp + 0x60]
push edx
call fcn.00413fb0
add esp, 4
test eax, eax
jne 0x4099fe
push 0x1e53
push 0x1f
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret
mov eax, dword [esp + 0x3e0]
mov ecx, dword [esp + 0x7d4]
test eax, eax
jne 0x409a48
mov edi, dword [esp + 0x7d0]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x7d8]
test eax, eax
je 0x409a38
mov dword [eax], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7b8
ret
cmp ecx, eax
jae 0x409a85
mov ecx, dword [esp + 0x7d8]
test ecx, ecx
je 0x409a59
mov dword [ecx], eax
mov esi, dword [esp + 0x7d0]
test esi, esi
je 0x409a73
push 0x1e68
push 0x20
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x7b8
ret
push eax
call fcn.004da41d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409ab0
push 0x1e72
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret
mov ecx, dword [esp + 0x3e0]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3d8]
xor edi, edi
lea eax, [esp + 0x3dc]
push edi
push eax
push ecx
push esi
mov dword [esp + 0x24], edi
call ebp
mov eax, dword [esp + 0x3e0]
lea edx, [esp + 0x1c]
push edi
push edx
push eax
push ebx
push esi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
mov edi, eax
call ebp
test edi, edi
je 0x409c1e
mov eax, dword [esp + 0x3e4]
mov ecx, dword [esp + 0x3e0]
push eax
push ecx
push ebx
call fcn.004170a0
add esp, 0xc
test eax, eax
je 0x409c27
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x408]
lea edx, [esp + 0x20]
push 0x40
push edx
push eax
call fcn.00409c50
add esp, 0xc
test eax, eax
jne 0x409ba1
mov eax, dword [esp + 0x3e0]
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 0x409b94
mov dword [ecx], eax
mov dword [esp + 0x14], 1
jmp 0x409c36
push eax
call fcn.00408aa0
mov edx, eax
add esp, 4
test edx, edx
je 0x409c15
mov ecx, dword [esp + 0x7d4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x7d4]
push ecx
mov ecx, dword [esp + 0x3e8]
push eax
push ecx
lea edi, [esp + 0x30]
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 + 0x34]
push ecx
push eax
mov ecx, edx
mov dword [esp + 0x2c], 0
call dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
je 0x409c0c
mov eax, dword [esp + 0x7d8]
test eax, eax
je 0x409c36
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x409c36
push 0x1eb0
push 0x12
jmp 0x409c2e
push 0x1eb5
push 0xc
jmp 0x409c2e
push 0x1e84
push 0xd
jmp 0x409c2e
push 0x1e8b
push 0x1c
call fcn.00408f80
add esp, 8
push ebx
call fcn.004da446
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b8
ret