Function at 0x408d00
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor eax, 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, 0x40f9c4
xor eax, eax
push ebp
push 0x409196
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x40e20c]
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x408d67
mov eax, dword [0x40e20c]
call sub.kernel32.dll_GetACP
cmp ebx, eax
jne 0x409170
mov edx, 0x40f9ac
xor eax, eax
call fcn.00402724
xor ebx, ebx
lea edx, [ebp - 0x144]
xor eax, eax
call fcn.00402724
mov eax, dword [ebp - 0x144]
mov edx, 0x40
call fcn.00404b0c
mov esi, eax
cmp esi, 0xffffffff
je 0x408e31
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
test eax, eax
je 0x408e2b
cmp dword [ebp - 0x10], 0x100
jne 0x408e2b
lea eax, [ebp - 0xf0]
mov eax, dword [eax]
mov dword [0x40f9c8], eax
push 0x1000000
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40f9b0], eax
cmp dword [0x40f9c8], 0x1000000
jg 0x408e2b
mov eax, dword [0x40f9c8]
call fcn.00402494
mov dword [0x40f9b4], eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00404950
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x40f9c8]
push eax
mov eax, dword [0x40f9b4]
push eax
push esi
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x40f9c8]
jne 0x408e2b
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x409170
push 0x40f9bc
mov ecx, 0x40f9b8
mov edx, dword [0x40f9c8]
mov eax, dword [0x40f9b4]
call fcn.00405484
test al, al
je 0x409170
call fcn.0040b384
mov ebx, eax
test bl, bl
je 0x408eca
call fcn.004026c4
dec eax
jne 0x408edd
lea edx, [ebp - 0x148]
mov eax, 1
call fcn.00402724
mov eax, dword [ebp - 0x148]
mov edx, dword [0x40e208]
mov edx, dword [edx]
call fcn.00403508
jne 0x408edd
mov eax, dword [edi]
mov dword [eax + 4], 1
jmp 0x408ea5
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [edi]
cmp dword [eax + 8], 1
jne 0x408e9e
push 0xc8
call sub.kernel32.dll_Sleep
call fcn.0040bd7c
xor ebx, ebx
call fcn.00408b10
call fcn.004084b0
jmp 0x408edd
mov eax, dword [edi]
mov dword [eax + 0xc], 1
call fcn.00408b10
call fcn.004084b0
call fcn.0040c260
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetLocalTime
mov edx, dword [0x40e20c]
mov edx, dword [edx + 0xc]
movzx eax, word [ebp - 0x24]
cmp edx, eax
jl 0x409170
mov ecx, dword [0x40e20c]
cmp edx, eax
jne 0x408f3c
mov edx, dword [0x40e20c]
mov edx, dword [edx + 0x10]
movzx eax, word [ebp - 0x22]
cmp edx, eax
jl 0x409170
mov ecx, dword [0x40e20c]
cmp edx, eax
jne 0x408f3c
movzx eax, word [ebp - 0x1e]
mov edx, dword [0x40e20c]
cmp eax, dword [edx + 0x14]
jge 0x409170
test bl, bl
jne 0x409170
mov eax, dword [0x40e20c]
mov eax, dword [eax + 0x20]
mov edx, dword [edi]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x14]
mov edx, 0x4091ac
call fcn.00403214
mov eax, dword [ebp - 0x14]
call fcn.00408a94
test eax, eax
jne 0x409170
mov eax, dword [ebp - 0x14]
call fcn.004035bc
mov edx, eax
lea eax, [ebp - 0x150]
call fcn.00403374
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00407d8c
mov eax, dword [ebp - 0x14c]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x114
mov ecx, 0x1fa0
call fcn.004047e0
lea eax, [ebp - 0x158]
mov edx, 0x40a01c
call fcn.00403374
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00407e4c
mov eax, dword [ebp - 0x154]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x20b4
mov ecx, 0x1fa0
call fcn.004047e0
call fcn.00408b10
mov byte [0x41c214], 0
mov byte [0x41c217], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40d520
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x41c215], 1
mov eax, dword [0x40e20c]
test byte [eax + 0x1c], 1
je 0x409053
push 0x7530
call sub.kernel32.dll_Sleep
mov byte [0x41c215], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40b240
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x41c216], 1
mov eax, dword [0x40e20c]
test byte [eax + 0x1c], 2
je 0x40910f
mov byte [0x41c216], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40b1e0
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x40910f
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4090cf
push 0x7d0
call sub.kernel32.dll_Sleep
cmp byte [0x41c217], 0
je 0x409142
mov eax, dword [0x41c218]
call fcn.004035bc
push eax
mov ecx, 0x40a20c
mov edx, 0x40a20c
mov al, 1
call fcn.00406a6c
mov byte [0x41c217], 0
jmp 0x409142
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x409108
cmp dword [ebp - 0x13c], 0x10
je 0x409142
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 [0x41c214], 0
je 0x40908b
cmp byte [0x41c215], 0
je 0x40908b
cmp byte [0x41c216], 0
je 0x40908b
mov eax, dword [edi]
cmp dword [eax + 0x10], 0
je 0x40908b
cmp byte [0x41c217], 0
je 0x409167
mov eax, dword [0x41c218]
call fcn.004035bc
push eax
mov ecx, 0x40a20c
mov edx, 0x40a20c
mov al, 1
call fcn.00406a6c
mov eax, dword [edi]
mov dword [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40919d
lea eax, [ebp - 0x158]
mov edx, 6
call fcn.004031a0
lea eax, [ebp - 0x14]
call fcn.0040317c
ret