Function at 0x4092cc
Capabilities:
Create thread
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, 0x4139c4
xor eax, eax
push ebp
push 0x4097b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x41220c]
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x40933f
mov eax, dword [0x41220c]
call sub.kernel32.dll_GetACP
cmp ebx, eax
jne 0x409790
mov edx, 0x4139ac
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.00404b34
mov esi, eax
cmp esi, 0xffffffff
je 0x409409
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 0x409403
cmp dword [ebp - 0x10], 0x100
jne 0x409403
lea eax, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [0x4139c8], eax
push 0x1000000
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x4139b0], eax
cmp dword [0x4139c8], 0x1000000
jg 0x409403
mov eax, dword [0x4139c8]
call fcn.00402494
mov dword [0x4139b4], eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00404978
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4139c8]
push eax
mov eax, dword [0x4139b4]
push eax
push esi
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4139c8]
jne 0x409403
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x409790
push 0x4139bc
mov ecx, 0x4139b8
mov edx, dword [0x4139c8]
mov eax, dword [0x4139b4]
call fcn.00405488
test al, al
je 0x409790
call fcn.0040fe8c
mov ebx, eax
test bl, bl
je 0x4094a2
call fcn.004026c4
dec eax
jne 0x4094b5
lea edx, [ebp - 0x148]
mov eax, 1
call fcn.00402724
mov eax, dword [ebp - 0x148]
mov edx, dword [0x412208]
mov edx, dword [edx]
call fcn.00403508
jne 0x4094b5
mov eax, dword [edi]
mov dword [eax + 4], 1
jmp 0x40947d
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [edi]
cmp dword [eax + 8], 1
jne 0x409476
push 0xc8
call sub.kernel32.dll_Sleep
call fcn.00410884
xor ebx, ebx
call fcn.004091a0
call fcn.00408a8c
jmp 0x4094b5
mov eax, dword [edi]
mov dword [eax + 0xc], 1
call fcn.004091a0
call fcn.00408a8c
call fcn.00408414
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetLocalTime
mov eax, 0x4097cc
call fcn.00404c24
mov edx, dword [0x41220c]
mov edx, dword [edx + 0xc]
movzx eax, word [ebp - 0x24]
cmp edx, eax
jl 0x409790
mov ecx, dword [0x41220c]
cmp edx, eax
jne 0x40951e
mov edx, dword [0x41220c]
mov edx, dword [edx + 0x10]
movzx eax, word [ebp - 0x22]
cmp edx, eax
jl 0x409790
mov ecx, dword [0x41220c]
cmp edx, eax
jne 0x40951e
movzx eax, word [ebp - 0x1e]
mov edx, dword [0x41220c]
cmp eax, dword [edx + 0x14]
jge 0x409790
mov eax, 0x4097d8
call fcn.00404c24
test bl, bl
jne 0x409790
mov eax, dword [0x41220c]
mov eax, dword [eax + 0x20]
mov edx, dword [edi]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x14]
mov edx, 0x4097e4
call fcn.00403214
mov eax, dword [ebp - 0x14]
call fcn.00409124
test eax, eax
jne 0x409790
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.00407d90
mov eax, dword [ebp - 0x14c]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x114
mov ecx, 0x1fa0
call fcn.00404808
lea eax, [ebp - 0x158]
mov edx, 0x40bab4
call fcn.00403374
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00407e50
mov eax, dword [ebp - 0x154]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x20b4
mov ecx, 0x1fa0
call fcn.00404808
lea edx, [ebp - 0x160]
mov eax, dword [0x41220c]
mov eax, dword [eax + 0x1c]
call fcn.00404850
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 0x40e06c
call fcn.00403408
mov eax, dword [ebp - 0x15c]
call fcn.00404c24
call fcn.004091a0
mov byte [0x4201fc], 0
mov byte [0x4201ff], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40f440
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x4201fd], 1
mov eax, dword [0x41220c]
test byte [eax + 0x1c], 1
je 0x409673
push 0x7530
call sub.kernel32.dll_Sleep
mov byte [0x4201fd], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40fd48
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x4201fe], 1
mov eax, dword [0x41220c]
test byte [eax + 0x1c], 2
je 0x40972f
mov byte [0x4201fe], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40fce8
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x40972f
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4096ef
push 0x7d0
call sub.kernel32.dll_Sleep
cmp byte [0x4201ff], 0
je 0x409762
mov eax, dword [0x420200]
call fcn.004035bc
push eax
mov ecx, 0x40e070
mov edx, 0x40e070
mov al, 1
call fcn.00406a70
mov byte [0x4201ff], 0
jmp 0x409762
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x409728
cmp dword [ebp - 0x13c], 0x10
je 0x409762
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 [0x4201fc], 0
je 0x4096ab
cmp byte [0x4201fd], 0
je 0x4096ab
cmp byte [0x4201fe], 0
je 0x4096ab
mov eax, dword [edi]
cmp dword [eax + 0x10], 0
je 0x4096ab
cmp byte [0x4201ff], 0
je 0x409787
mov eax, dword [0x420200]
call fcn.004035bc
push eax
mov ecx, 0x40e070
mov edx, 0x40e070
mov al, 1
call fcn.00406a70
mov eax, dword [edi]
mov dword [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097bd
lea eax, [ebp - 0x160]
mov edx, 8
call fcn.004031a0
lea eax, [ebp - 0x14]
call fcn.0040317c
ret