Function at 0x409e48
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x409e50
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
mov esi, 0x413b6c
xor eax, eax
push ebp
push 0x40adda
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407c30
mov eax, dword [ebp - 8]
call fcn.0040372c
lea eax, [ebp - 0x24]
call fcn.0040372c
lea eax, [ebp - 0x28]
call fcn.0040372c
xor eax, eax
mov dword [0x413b60], eax
xor eax, eax
mov dword [0x413b64], eax
mov byte [esi], 0
mov byte [esi + 0x7fff9], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
cmp eax, 0x7f
jge 0x409ee6
push 0
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
jmp 0x409f10
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
test al, al
je 0x40acee
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 5
je 0x409f6e
sub eax, 0x1b
je 0x409f6e
sub eax, 0x5b
je 0x409f6e
push 0x40adf0
push dword [ebp - 4]
push 0x40ae04
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x10]
call fcn.00406634
push dword [ebp - 0xc8]
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0xc4]
call fcn.004116a4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40ada7
cmp dword [ebp - 0x10], 0x32
jb 0x40acee
mov edi, 1
jmp 0x40a59b
lea eax, [ebp - 0x2c]
call fcn.0040372c
lea eax, [ebp - 0x30]
call fcn.0040372c
lea eax, [edi + 0x12]
dec eax
mov dword [ebp - 0x14], eax
cmp byte [esi + edi], 0x30
jne 0x40a59a
cmp byte [esi + edi + 1], 0x38
jne 0x40a59a
mov al, byte [esi + edi + 2]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
cmp byte [esi + edi + 3], 0x39
jne 0x40a59a
mov al, byte [esi + edi + 4]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 5]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 8]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xb]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xe]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a59a
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a59a
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a59a
lea edx, [esi + edi]
lea eax, [ebp - 0x2c]
mov ecx, 0x12
call fcn.0040381c
mov eax, dword [ebp - 0x2c]
call fcn.0040691c
test al, al
je 0x40a59a
mov eax, dword [ebp - 0x2c]
mov edx, 0x40ae10
call fcn.004039f0
je 0x40a59a
push 0x40ae2c
mov eax, dword [ebp - 0x20]
add eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.00405460
push dword [ebp - 0xcc]
push 0x40ae3c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00403964
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
call fcn.004038ac
cmp edi, 0x96
jbe 0x40a1c5
mov eax, edi
sub eax, 0x96
jmp 0x40a1ca
mov eax, 1
lea edx, [edi + 0x96]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x20
cmp edx, dword [ebp - 0x10]
jbe 0x40a1e4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x40a597
cmp edi, ebx
ja 0x40a1fe
cmp ebx, dword [ebp - 0x14]
ja 0x40a1fe
mov ebx, dword [ebp - 0x14]
add ebx, 2
lea eax, [ebx + 0x20]
dec eax
mov dword [ebp - 0x18], eax
mov al, byte [esi + ebx]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 2]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 5]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 8]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xb]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xe]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x11]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x14]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x17]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1a]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1d]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a58d
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a58d
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a58d
lea edx, [esi + ebx]
lea eax, [ebp - 0x30]
mov ecx, 0x20
call fcn.0040381c
mov eax, dword [ebp - 0x30]
call fcn.0040691c
test al, al
je 0x40a58d
mov eax, dword [ebp - 0x30]
mov edx, 0x40ae48
call fcn.004039f0
je 0x40a58d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00403b8c
test eax, eax
jne 0x40a58d
push 0x40ae74
mov eax, dword [ebp - 0x20]
add eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xd0]
call fcn.00405460
push dword [ebp - 0xd0]
push 0x40ae3c
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00403964
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x30]
call fcn.004038ac
inc dword [0x413b60]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x40a1ef
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x12
inc eax
cmp edi, eax
jbe 0x409f90
mov edi, 1
jmp 0x40acd9
lea eax, [ebp - 0x34]
call fcn.0040372c
lea eax, [ebp - 0x38]
call fcn.0040372c
lea eax, [edi + 0x1a]
dec eax
mov dword [ebp - 0x14], eax
cmp byte [esi + edi], 0x30
jne 0x40acd8
cmp byte [esi + edi + 1], 0x38
jne 0x40acd8
cmp byte [esi + edi + 2], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 3]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 4], 0x39
jne 0x40acd8
cmp byte [esi + edi + 5], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 8], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 0xb], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 0xe], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 0x11], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 0x12]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 0x13]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 0x14], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 0x15]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi + 0x16]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
cmp byte [esi + edi + 0x17], 0x20
jne 0x40acd8
mov al, byte [esi + edi + 0x18]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40acd8
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40acd8
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40acd8
lea edx, [esi + edi]
lea eax, [ebp - 0x34]
mov ecx, 0x1a
call fcn.0040381c
lea edx, [ebp - 0xd4]
mov eax, dword [ebp - 0x34]
call fcn.00406868
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0x34]
call fcn.004037c4
mov eax, dword [ebp - 0x34]
call fcn.0040691c
test al, al
je 0x40acd8
mov eax, dword [ebp - 0x34]
mov edx, 0x40ae10
call fcn.004039f0
je 0x40acd8
push 0x40ae84
mov eax, dword [ebp - 0x20]
add eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xd8]
call fcn.00405460
push dword [ebp - 0xd8]
push 0x40ae3c
push dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00403964
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.004038ac
cmp edi, 0x96
jbe 0x40a85d
mov eax, edi
sub eax, 0x96
jmp 0x40a862
mov eax, 1
lea edx, [edi + 0x96]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x2f
cmp edx, dword [ebp - 0x10]
jbe 0x40a87c
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x40acd5
cmp edi, ebx
ja 0x40a896
cmp ebx, dword [ebp - 0x14]
ja 0x40a896
mov ebx, dword [ebp - 0x14]
add ebx, 2
lea eax, [ebx + 0x2f]
dec eax
mov dword [ebp - 0x18], eax
mov al, byte [esi + ebx]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 2], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 5], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 8], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0xb], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0xe], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x11], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x14], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x17], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x1a], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x1d], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x20], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x21]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x22]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x23], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x24]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x25]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x26], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x27]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x28]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x29], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x2a]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x2b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
cmp byte [esi + ebx + 0x2c], 0x20
jne 0x40accb
mov al, byte [esi + ebx + 0x2d]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x2e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40accb
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40accb
mov al, byte [esi + ebx + 0x2f]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40accb
lea edx, [esi + ebx]
lea eax, [ebp - 0x38]
mov ecx, 0x2f
call fcn.0040381c
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x38]
call fcn.00406868
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0x38]
call fcn.004037c4
mov eax, dword [ebp - 0x38]
call fcn.0040691c
test al, al
je 0x40accb
mov eax, dword [ebp - 0x38]
mov edx, 0x40ae48
call fcn.004039f0
je 0x40accb
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.00403b8c
test eax, eax
jne 0x40accb
push 0x40ae98
mov eax, dword [ebp - 0x20]
add eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xe0]
call fcn.00405460
push dword [ebp - 0xe0]
push 0x40ae3c
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00403964
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.004038ac
inc dword [0x413b64]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x40a887
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x1a
inc eax
cmp edi, eax
jbe 0x40a5b4
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x7fff8
lea eax, [esi + 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x40ad14
cmp dword [ebp - 0x10], 0
ja 0x409f7c
cmp dword [0x413b60], 0
jle 0x40ad37
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x24]
push 0x40ae04
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403964
cmp dword [0x413b64], 0
jle 0x40ad5a
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x28]
push 0x40ae04
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004038a4
cmp eax, 0xed800
jle 0x40ad80
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, 0xed800
xor edx, edx
call fcn.00403b04
cmp dword [ebp - 0x10], 0
jbe 0x40ad9e
lea edx, [ebp - 0xe4]
xor eax, eax
call fcn.00406634
mov eax, dword [ebp - 0xe4]
call fcn.004116a4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ade1
lea eax, [ebp - 0xe4]
mov edx, 9
call fcn.00403750
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret