Function at 0x409e1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x409e24
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.00403a84
mov esi, 0x415b70
xor eax, eax
push ebp
push 0x40adfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x415b14
mov edx, 0x40ae14
call fcn.00403770
call fcn.00407818
mov eax, dword [ebp - 8]
call fcn.0040371c
lea eax, [ebp - 0x24]
call fcn.0040371c
lea eax, [ebp - 0x28]
call fcn.0040371c
xor eax, eax
mov dword [0x415b64], eax
xor eax, eax
mov dword [0x415b68], 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.00403894
cmp eax, 0x7f
jge 0x409ec9
push 0
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
jmp 0x409ef3
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
test al, al
je 0x409f7c
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 2
je 0x409f2c
sub eax, 3
je 0x409f2c
sub eax, 0x1b
je 0x409f2c
sub eax, 0x15
je 0x409f2c
sub eax, 0x46
je 0x409f2c
cmp dword [ebp - 0x10], 0x4cf
je 0x409f2c
xor eax, eax
jmp 0x409f2e
mov al, 1
test al, al
jne 0x409f6e
push 0x40ae38
push dword [ebp - 4]
push 0x40ae4c
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x10]
call fcn.004061f4
push dword [ebp - 0xc8]
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0xc4]
call fcn.00412de0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40adca
mov eax, 0x415b14
mov edx, 0x40ae58
call fcn.00403770
jmp 0x40ad02
cmp dword [ebp - 0x10], 0x32
jb 0x40ad02
mov edi, 1
jmp 0x40a5af
lea eax, [ebp - 0x2c]
call fcn.0040371c
lea eax, [ebp - 0x30]
call fcn.0040371c
lea eax, [edi + 0x12]
dec eax
mov dword [ebp - 0x14], eax
cmp byte [esi + edi], 0x30
jne 0x40a5ae
cmp byte [esi + edi + 1], 0x38
jne 0x40a5ae
mov al, byte [esi + edi + 2]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
cmp byte [esi + edi + 3], 0x39
jne 0x40a5ae
mov al, byte [esi + edi + 4]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 5]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 8]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xb]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xe]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40a5ae
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40a5ae
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40a5ae
lea edx, [esi + edi]
lea eax, [ebp - 0x2c]
mov ecx, 0x12
call fcn.0040380c
mov eax, dword [ebp - 0x2c]
call fcn.00406420
test al, al
je 0x40a5ae
mov eax, dword [ebp - 0x2c]
mov edx, 0x40ae70
call fcn.004039e0
je 0x40a5ae
push 0x40ae8c
mov eax, dword [ebp - 0x20]
add eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xcc]
call fcn.00405390
push dword [ebp - 0xcc]
push 0x40ae9c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00403954
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
call fcn.0040389c
cmp edi, 0x96
jbe 0x40a1d9
mov eax, edi
sub eax, 0x96
jmp 0x40a1de
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 0x40a1f8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x40a5ab
cmp edi, ebx
ja 0x40a212
cmp ebx, dword [ebp - 0x14]
ja 0x40a212
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 [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 2]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 5]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 8]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xb]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xe]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x11]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x14]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x17]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1a]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1d]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40a5a1
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40a5a1
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40a5a1
lea edx, [esi + ebx]
lea eax, [ebp - 0x30]
mov ecx, 0x20
call fcn.0040380c
mov eax, dword [ebp - 0x30]
call fcn.00406420
test al, al
je 0x40a5a1
mov eax, dword [ebp - 0x30]
mov edx, 0x40aea8
call fcn.004039e0
je 0x40a5a1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00403b7c
test eax, eax
jne 0x40a5a1
push 0x40aed4
mov eax, dword [ebp - 0x20]
add eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xd0]
call fcn.00405390
push dword [ebp - 0xd0]
push 0x40ae9c
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00403954
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x30]
call fcn.0040389c
inc dword [0x415b64]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x40a203
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x12
inc eax
cmp edi, eax
jbe 0x409fa4
mov edi, 1
jmp 0x40aced
lea eax, [ebp - 0x34]
call fcn.0040371c
lea eax, [ebp - 0x38]
call fcn.0040371c
lea eax, [edi + 0x1a]
dec eax
mov dword [ebp - 0x14], eax
cmp byte [esi + edi], 0x30
jne 0x40acec
cmp byte [esi + edi + 1], 0x38
jne 0x40acec
cmp byte [esi + edi + 2], 0x20
jne 0x40acec
mov al, byte [esi + edi + 3]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 4], 0x39
jne 0x40acec
cmp byte [esi + edi + 5], 0x20
jne 0x40acec
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 8], 0x20
jne 0x40acec
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 0xb], 0x20
jne 0x40acec
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 0xe], 0x20
jne 0x40acec
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 0x11], 0x20
jne 0x40acec
mov al, byte [esi + edi + 0x12]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 0x13]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 0x14], 0x20
jne 0x40acec
mov al, byte [esi + edi + 0x15]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi + 0x16]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
cmp byte [esi + edi + 0x17], 0x20
jne 0x40acec
mov al, byte [esi + edi + 0x18]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x414144], eax
jae 0x40acec
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40acec
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40acec
lea edx, [esi + edi]
lea eax, [ebp - 0x34]
mov ecx, 0x1a
call fcn.0040380c
lea edx, [ebp - 0xd4]
mov eax, dword [ebp - 0x34]
call fcn.00406398
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0x34]
call fcn.004037b4
mov eax, dword [ebp - 0x34]
call fcn.00406420
test al, al
je 0x40acec
mov eax, dword [ebp - 0x34]
mov edx, 0x40ae70
call fcn.004039e0
je 0x40acec
push 0x40aee4
mov eax, dword [ebp - 0x20]
add eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xd8]
call fcn.00405390
push dword [ebp - 0xd8]
push 0x40ae9c
push dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00403954
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
call fcn.0040389c
cmp edi, 0x96
jbe 0x40a871
mov eax, edi
sub eax, 0x96
jmp 0x40a876
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 0x40a890
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x40ace9
cmp edi, ebx
ja 0x40a8aa
cmp ebx, dword [ebp - 0x14]
ja 0x40a8aa
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 [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 2], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 5], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 8], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0xb], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0xe], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x11], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x14], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x17], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x1a], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x1d], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x20], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x21]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x22]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x23], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x24]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x25]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x26], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x27]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x28]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x29], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x2a]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x2b]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
cmp byte [esi + ebx + 0x2c], 0x20
jne 0x40acdf
mov al, byte [esi + ebx + 0x2d]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x2e]
and eax, 0xff
bt dword [0x414164], eax
jae 0x40acdf
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40acdf
mov al, byte [esi + ebx + 0x2f]
and eax, 0xff
bt dword [0x414184], eax
jae 0x40acdf
lea edx, [esi + ebx]
lea eax, [ebp - 0x38]
mov ecx, 0x2f
call fcn.0040380c
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x38]
call fcn.00406398
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0x38]
call fcn.004037b4
mov eax, dword [ebp - 0x38]
call fcn.00406420
test al, al
je 0x40acdf
mov edx, 0x40aea8
mov eax, dword [ebp - 0x38]
call fcn.004039e0
je 0x40acdf
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.00403b7c
test eax, eax
jne 0x40acdf
push 0x40aef8
mov eax, dword [ebp - 0x20]
add eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xe0]
call fcn.00405390
push dword [ebp - 0xe0]
push 0x40ae9c
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00403954
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x38]
call fcn.0040389c
inc dword [0x415b68]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x40a89b
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x1a
inc eax
cmp edi, eax
jbe 0x40a5c8
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_1
test eax, eax
je 0x40ad28
cmp dword [ebp - 0x10], 0
ja 0x409f90
cmp dword [0x415b64], 0
jle 0x40ad4b
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x24]
push 0x40ae4c
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403954
cmp dword [0x415b68], 0
jle 0x40ad6e
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x28]
push 0x40ae4c
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00403894
cmp eax, 0xed800
jle 0x40ad94
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, 0xed800
xor edx, edx
call fcn.00403af4
cmp dword [ebp - 0x10], 0
jbe 0x40adb2
lea edx, [ebp - 0xe4]
xor eax, eax
call fcn.004061f4
mov eax, dword [ebp - 0xe4]
call fcn.00412de0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x415b14
mov edx, 0x40ae14
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae04
lea eax, [ebp - 0xe4]
mov edx, 9
call fcn.00403740
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403740
lea eax, [ebp - 4]
call fcn.0040371c
ret