Function at 0x409cf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x40ff14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push ebp
push eax
mov edi, 8
mov dword [esp + 0x18], 0
call fcn.0040ad73
mov esi, eax
test esi, esi
je 0x409f89
push ebx
push ebp
call fcn.0040a5b0
cmp dword [esi + 4], 0
mov edi, eax
mov ebx, edx
je 0x409d43
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.0040a640
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x409d5e
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x14]
cmp esi, 2
mov eax, dword [esp + 0x10]
jl 0x409d9c
movzx ecx, al
sub ecx, 0xff
jne 0x409d7d
movzx ecx, ah
sub ecx, 0xfe
je 0x409d8b
test ecx, ecx
mov edx, 1
jg 0x409d8d
or edx, 0xffffffff
jmp 0x409d8d
xor edx, edx
test edx, edx
jne 0x409d9c
lea esi, [edx + 9]
add edi, 2
jmp 0x409f59
cmp esi, 3
jl 0x409de3
movzx ecx, al
sub ecx, 0xef
jne 0x409dc4
movzx ecx, ah
sub ecx, 0xbb
jne 0x409dc4
movzx ecx, byte [esp + 0x12]
sub ecx, 0xbf
je 0x409dd2
test ecx, ecx
mov edx, 1
jg 0x409dd4
or edx, 0xffffffff
jmp 0x409dd4
xor edx, edx
test edx, edx
jne 0x409de3
lea esi, [edx + 2]
add edi, 3
jmp 0x409f59
cmp esi, 2
jl 0x409e1d
movzx ecx, al
sub ecx, 0xfe
jne 0x409dfe
movzx ecx, ah
sub ecx, 0xff
je 0x409e0c
test ecx, ecx
mov edx, 1
jg 0x409e0e
or edx, 0xffffffff
jmp 0x409e0e
xor edx, edx
test edx, edx
jne 0x409e1d
lea esi, [edx + 4]
add edi, 2
jmp 0x409f59
cmp esi, 4
jl 0x409f70
mov eax, 4
mov ecx, 0x40d27c
lea edx, [esp + 0x10]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x409e4c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x409e34
test eax, eax
je 0x409eb1
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409e9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409ead
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409e9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409ead
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409e9b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409ead
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x409ead
test esi, esi
mov ebp, dword [esp + 0x1c]
mov eax, 1
jg 0x409eb3
or eax, 0xffffffff
jmp 0x409eb3
mov ebp, dword [esp + 0x1c]
xor eax, eax
test eax, eax
jne 0x409ebf
lea esi, [eax + 5]
jmp 0x409f56
mov eax, 4
mov ecx, 0x40d274
lea edx, [esp + 0x10]
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x409ee8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x409ed0
test eax, eax
je 0x409f4d
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409f37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409f49
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409f37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409f49
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x409f37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x409f49
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x409f49
test esi, esi
mov ebp, dword [esp + 0x1c]
mov eax, 1
jg 0x409f4f
or eax, 0xffffffff
jmp 0x409f4f
mov ebp, dword [esp + 0x1c]
xor eax, eax
test eax, eax
jne 0x409f70
lea esi, [eax + 6]
add edi, 4
adc ebx, 0
push ebx
push edi
push ebp
call fcn.0040a390
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 4
push ebx
push edi
push ebp
mov esi, 8
call fcn.0040a390
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret 4