Function at 0x4097a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x4097a8
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, 0x413b6c
xor eax, eax
push ebp
push 0x40a74f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407588
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 [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.00403894
cmp eax, 0x7f
jge 0x40983e
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 0x409868
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
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
test al, al
je 0x40a663
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 2
je 0x4098a1
sub eax, 3
je 0x4098a1
sub eax, 0x1b
je 0x4098a1
sub eax, 0x15
je 0x4098a1
sub eax, 0x46
je 0x4098a1
cmp dword [ebp - 0x10], 0x4cf
je 0x4098a1
xor eax, eax
jmp 0x4098a3
mov al, 1
test al, al
jne 0x4098e3
push 0x40a768
push dword [ebp - 4]
push 0x40a77c
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.00411020
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40a71c
cmp dword [ebp - 0x10], 0x32
jb 0x40a663
mov edi, 1
jmp 0x409f10
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 0x409f0f
cmp byte [esi + edi + 1], 0x38
jne 0x409f0f
mov al, byte [esi + edi + 2]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
cmp byte [esi + edi + 3], 0x39
jne 0x409f0f
mov al, byte [esi + edi + 4]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 5]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 8]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xb]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xe]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412144], eax
jae 0x409f0f
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x409f0f
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x409f0f
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 0x409f0f
mov eax, dword [ebp - 0x2c]
mov edx, 0x40a788
call fcn.004039e0
je 0x409f0f
push 0x40a7a4
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 0x40a7b4
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 0x409b3a
mov eax, edi
sub eax, 0x96
jmp 0x409b3f
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 0x409b59
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x409f0c
cmp edi, ebx
ja 0x409b73
cmp ebx, dword [ebp - 0x14]
ja 0x409b73
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 0x409f02
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 2]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 5]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 8]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xb]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xe]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x11]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x14]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x17]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1a]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1d]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412164], eax
jae 0x409f02
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x409f02
mov eax, dword [ebp - 0x18]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x409f02
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 0x409f02
mov eax, dword [ebp - 0x30]
mov edx, 0x40a7c0
call fcn.004039e0
je 0x409f02
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00403b7c
test eax, eax
jne 0x409f02
push 0x40a7ec
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 0x40a7b4
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 [0x413b60]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x409b64
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x12
inc eax
cmp edi, eax
jbe 0x409905
mov edi, 1
jmp 0x40a64e
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 0x40a64d
cmp byte [esi + edi + 1], 0x38
jne 0x40a64d
cmp byte [esi + edi + 2], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 3]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 4], 0x39
jne 0x40a64d
cmp byte [esi + edi + 5], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 6]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 7]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 8], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 9]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 0xa]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 0xb], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 0xc]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 0xd]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 0xe], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 0xf]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 0x10]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 0x11], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 0x12]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 0x13]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 0x14], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 0x15]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi + 0x16]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
cmp byte [esi + edi + 0x17], 0x20
jne 0x40a64d
mov al, byte [esi + edi + 0x18]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax]
and eax, 0xff
bt dword [0x412144], eax
jae 0x40a64d
mov al, byte [esi + edi - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a64d
mov eax, dword [ebp - 0x14]
mov al, byte [esi + eax + 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a64d
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 0x40a64d
mov eax, dword [ebp - 0x34]
mov edx, 0x40a788
call fcn.004039e0
je 0x40a64d
push 0x40a7fc
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 0x40a7b4
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 0x40a1d2
mov eax, edi
sub eax, 0x96
jmp 0x40a1d7
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 0x40a1f1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
ja 0x40a64a
cmp edi, ebx
ja 0x40a20b
cmp ebx, dword [ebp - 0x14]
ja 0x40a20b
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 0x40a640
mov al, byte [esi + ebx + 1]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 2], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 3]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 4]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 5], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 6]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 7]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 8], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 9]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0xa]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0xb], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0xc]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0xd]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0xe], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0xf]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x10]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x11], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x12]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x13]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x14], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x15]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x16]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x17], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x18]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x19]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x1a], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x1b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x1c]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x1d], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x1e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x1f]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x20], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x21]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x22]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x23], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x24]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x25]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x26], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x27]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x28]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x29], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x2a]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x2b]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
cmp byte [esi + ebx + 0x2c], 0x20
jne 0x40a640
mov al, byte [esi + ebx + 0x2d]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x2e]
and eax, 0xff
bt dword [0x412164], eax
jae 0x40a640
mov al, byte [esi + ebx - 1]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a640
mov al, byte [esi + ebx + 0x2f]
and eax, 0xff
bt dword [0x412184], eax
jae 0x40a640
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 0x40a640
mov eax, dword [ebp - 0x38]
mov edx, 0x40a7c0
call fcn.004039e0
je 0x40a640
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.00403b7c
test eax, eax
jne 0x40a640
push 0x40a810
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 0x40a7b4
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 [0x413b64]
mov ebx, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jbe 0x40a1fc
mov edi, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x10]
sub eax, 0x1a
inc eax
cmp edi, eax
jbe 0x409f29
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 0x40a689
cmp dword [ebp - 0x10], 0
ja 0x4098f1
cmp dword [0x413b60], 0
jle 0x40a6ac
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x24]
push 0x40a77c
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00403954
cmp dword [0x413b64], 0
jle 0x40a6cf
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x28]
push 0x40a77c
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 0x40a6f5
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 0x40a713
lea edx, [ebp - 0xe4]
xor eax, eax
call fcn.004061f4
mov eax, dword [ebp - 0xe4]
call fcn.00411020
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 0x40a756
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