Function at 0x408cbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x14], eax
mov edi, 0x41299c
xor eax, eax
push ebp
push 0x409184
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x41120c]
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x408d2f
mov eax, dword [0x41120c]
call sub.KERNEL32.DLL_GetACP
cmp ebx, eax
jne 0x40915e
mov edx, 0x41298c
xor eax, eax
call fcn.0040271c
xor ebx, ebx
lea edx, [ebp - 0x144]
xor eax, eax
call fcn.0040271c
mov eax, dword [ebp - 0x144]
mov edx, 0x40
call fcn.00404a84
mov esi, eax
cmp esi, 0xffffffff
je 0x408df9
push 0
lea eax, [ebp - 0x10]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
or eax, eax
je 0x408df3
cmp dword [ebp - 0x10], 0x100
jne 0x408df3
lea eax, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [0x4129a0], eax
push 0x1000000
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [0x412990], eax
cmp dword [0x4129a0], 0x1000000
jg 0x408df3
mov eax, dword [0x4129a0]
call fcn.0040248c
mov dword [0x412994], eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.004048c8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4129a0]
push eax
mov eax, dword [0x412994]
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4129a0]
jne 0x408df3
mov bl, 1
push esi
call sub.KERNEL32.DLL_CloseHandle
test bl, bl
je 0x40915e
call fcn.0040fc8c
mov ebx, eax
test bl, bl
je 0x408e70
call fcn.004026bc
dec eax
jne 0x408e83
lea edx, [ebp - 0x148]
mov eax, 1
call fcn.0040271c
mov eax, dword [ebp - 0x148]
mov edx, dword [0x411208]
mov edx, dword [edx]
call fcn.00403454
jne 0x408e83
mov eax, dword [edi]
mov dword [eax + 4], 1
jmp 0x408e4b
push 0x64
call sub.KERNEL32.DLL_Sleep
mov eax, dword [edi]
cmp dword [eax + 8], 1
jne 0x408e44
push 0xc8
call sub.KERNEL32.DLL_Sleep
call fcn.00410494
xor ebx, ebx
call fcn.00408b90
call fcn.00408554
jmp 0x408e83
mov eax, dword [edi]
mov dword [eax + 0xc], 1
call fcn.00408b90
call fcn.00408554
call fcn.00407ef4
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_GetLocalTime
mov eax, 0x40919c
call fcn.00404bbc
mov edx, dword [0x41120c]
mov edx, dword [edx + 0xc]
movzx eax, word [ebp - 0x24]
cmp edx, eax
jl 0x40915e
mov ecx, dword [0x41120c]
cmp edx, eax
jne 0x408eec
mov edx, dword [0x41120c]
mov edx, dword [edx + 0x10]
movzx eax, word [ebp - 0x22]
cmp edx, eax
jl 0x40915e
mov ecx, dword [0x41120c]
cmp edx, eax
jne 0x408eec
movzx eax, word [ebp - 0x1e]
mov edx, dword [0x41120c]
cmp eax, dword [edx + 0x14]
jge 0x40915e
mov eax, 0x4091a8
call fcn.00404bbc
test bl, bl
jne 0x40915e
mov eax, dword [0x41120c]
mov eax, dword [eax + 0x20]
mov edx, dword [edi]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x14]
mov edx, 0x4091b4
call fcn.0040320c
mov eax, dword [ebp - 0x14]
call fcn.00408b14
test eax, eax
jne 0x40915e
mov eax, dword [ebp - 0x14]
call fcn.00403508
mov edx, eax
lea eax, [ebp - 0x150]
call fcn.004032c0
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00407870
mov eax, dword [ebp - 0x14c]
call fcn.00403508
mov edx, eax
mov eax, dword [edi]
add eax, 0x114
mov ecx, 0x1fa0
call fcn.00404758
lea eax, [ebp - 0x158]
mov edx, 0x40b484
call fcn.004032c0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00407930
mov eax, dword [ebp - 0x154]
call fcn.00403508
mov edx, eax
mov eax, dword [edi]
add eax, 0x20b4
mov ecx, 0x1fa0
call fcn.00404758
lea edx, [ebp - 0x160]
mov eax, dword [0x41120c]
mov eax, dword [eax + 0x1c]
call fcn.004047a0
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 0x40da3c
call fcn.00403354
mov eax, dword [ebp - 0x15c]
call fcn.00404bbc
call fcn.00408b90
mov byte [0x41f1d4], 0
mov byte [0x41f1d7], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40ee9c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov byte [0x41f1d5], 1
mov eax, dword [0x41120c]
test byte [eax + 0x1c], 1
je 0x409041
push 0x7530
call sub.KERNEL32.DLL_Sleep
mov byte [0x41f1d5], 0
lea eax, [ebp - 8]
push eax
push 0
jmp 0x410cce
nop
nop
push 0
call sub.KERNEL32.DLL_CreateThread
mov byte [0x41f1d6], 1
mov eax, dword [0x41120c]
test byte [eax + 0x1c], 2
je 0x4090fd
mov byte [0x41f1d6], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40f8f0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
jmp 0x4090fd
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4090bd
push 0x7d0
call sub.KERNEL32.DLL_Sleep
cmp byte [0x41f1d7], 0
je 0x409130
mov eax, dword [0x41f1d8]
call fcn.00403508
push eax
mov ecx, 0x40da40
mov edx, 0x40da40
mov al, 1
call fcn.00406550
mov byte [0x41f1d7], 0
jmp 0x409130
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4090f6
cmp dword [ebp - 0x13c], 0x10
je 0x409130
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_DispatchMessageA
push 0x64
call sub.KERNEL32.DLL_Sleep
cmp byte [0x41f1d4], 0
je 0x409079
cmp byte [0x41f1d5], 0
je 0x409079
cmp byte [0x41f1d6], 0
je 0x409079
mov eax, dword [edi]
cmp dword [eax + 0x10], 0
je 0x409079
cmp byte [0x41f1d7], 0
je 0x409155
mov eax, dword [0x41f1d8]
call fcn.00403508
push eax
mov ecx, 0x40da40
mov edx, 0x40da40
mov al, 1
call fcn.00406550
mov eax, dword [edi]
mov dword [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40918b
lea eax, [ebp - 0x160]
mov edx, 8
call fcn.00403198
lea eax, [ebp - 0x14]
call fcn.00403174
ret
push 0
push 0x40fb40
push 0
jmp 0x409038