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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x40967c
push ecx
push ebx
push esi
push edi
mov edi, 0x4129c4
xor eax, eax
push ebp
push 0x409be4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x41120c]
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4096b9
mov eax, dword [0x41120c]
call sub.kernel32.dll_GetACP
cmp ebx, eax
jne 0x409bbe
mov eax, 0x409bfc
call fcn.00404b00
mov edx, 0x4129ac
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.00404a10
mov esi, eax
cmp esi, 0xffffffff
je 0x4097fc
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 0x4097f6
cmp dword [ebp - 0x10], 0x100
jne 0x4097f6
mov eax, 0x409c08
call fcn.00404b00
lea eax, [ebp - 0xf4]
mov eax, dword [eax]
mov dword [0x4129c8], eax
push 0x1000000
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x4129b0], eax
cmp dword [0x4129c8], 0x1000000
jg 0x4097f6
mov eax, 0x409c14
call fcn.00404b00
mov eax, dword [0x4129c8]
call fcn.00402494
mov dword [0x4129b4], eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00404854
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4129c8]
push eax
mov eax, dword [0x4129b4]
push eax
push esi
call sub.kernel32.dll_ReadFile
push 0x409c24
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
call fcn.0040477c
push dword [ebp - 0x14c]
push 0x409c34
lea edx, [ebp - 0x150]
mov eax, dword [0x4129c8]
call fcn.0040477c
push dword [ebp - 0x150]
lea eax, [ebp - 0x148]
mov edx, 4
call fcn.0040347c
mov eax, dword [ebp - 0x148]
call fcn.00404b00
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4129c8]
jne 0x4097f6
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x409bbe
lea edx, [ebp - 0x158]
mov eax, dword [0x4129c8]
call fcn.0040477c
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, 0x409c40
call fcn.00403408
mov eax, dword [ebp - 0x154]
call fcn.00404b00
push 0x4129bc
mov ecx, 0x4129b8
mov edx, dword [0x4129c8]
mov eax, dword [0x4129b4]
call fcn.00405364
test al, al
je 0x409bbe
mov eax, 0x409c4c
call fcn.00404b00
call fcn.004100fc
mov ebx, eax
test bl, bl
je 0x4098d0
call fcn.004026c4
dec eax
jne 0x4098e3
lea edx, [ebp - 0x15c]
mov eax, 1
call fcn.00402724
mov eax, dword [ebp - 0x15c]
mov edx, dword [0x411208]
mov edx, dword [edx]
call fcn.00403508
jne 0x4098e3
mov eax, dword [edi]
mov dword [eax + 4], 1
jmp 0x4098ab
push 0x64
call sub.kernel32.dll_Sleep
mov eax, dword [edi]
cmp dword [eax + 8], 1
jne 0x4098a4
push 0xc8
call sub.kernel32.dll_Sleep
call fcn.0040f79c
xor ebx, ebx
call fcn.00409548
call fcn.00408e50
jmp 0x4098e3
mov eax, dword [edi]
mov dword [eax + 0xc], 1
call fcn.00409548
call fcn.00408e50
call fcn.004087d8
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetLocalTime
mov eax, 0x409c58
call fcn.00404b00
mov edx, dword [0x41120c]
mov edx, dword [edx + 0xc]
movzx eax, word [ebp - 0x24]
cmp edx, eax
jl 0x409bbe
mov ecx, dword [0x41120c]
cmp edx, eax
jne 0x40994c
mov edx, dword [0x41120c]
mov edx, dword [edx + 0x10]
movzx eax, word [ebp - 0x22]
cmp edx, eax
jl 0x409bbe
mov ecx, dword [0x41120c]
cmp edx, eax
jne 0x40994c
movzx eax, word [ebp - 0x1e]
mov edx, dword [0x41120c]
cmp eax, dword [edx + 0x14]
jge 0x409bbe
mov eax, 0x409c64
call fcn.00404b00
test bl, bl
jne 0x409bbe
mov eax, dword [0x41120c]
mov eax, dword [eax + 0x20]
mov edx, dword [edi]
mov dword [edx + 0x14], eax
lea eax, [ebp - 0x14]
mov edx, 0x409c70
call fcn.00403214
mov eax, dword [ebp - 0x14]
call fcn.004094cc
test eax, eax
jne 0x409bbe
mov eax, dword [ebp - 0x14]
call fcn.004035bc
mov edx, eax
lea eax, [ebp - 0x164]
call fcn.00403374
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x160]
call fcn.00407a00
mov eax, dword [ebp - 0x160]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x114
mov ecx, 0x1fa0
call fcn.00404734
lea eax, [ebp - 0x16c]
mov edx, 0x40bf3c
call fcn.00403374
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call fcn.00407950
mov eax, dword [ebp - 0x168]
call fcn.004035bc
mov edx, eax
mov eax, dword [edi]
add eax, 0x20b4
mov ecx, 0x1fa0
call fcn.00404734
lea edx, [ebp - 0x174]
mov eax, dword [0x41120c]
mov eax, dword [eax + 0x1c]
call fcn.0040477c
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 0x40e644
call fcn.00403408
mov eax, dword [ebp - 0x170]
call fcn.00404b00
call fcn.00409548
mov byte [0x41f1fc], 0
mov byte [0x41f1ff], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40fdec
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x41f1fd], 1
mov eax, dword [0x41120c]
test byte [eax + 0x1c], 1
je 0x409aa1
push 0x7530
call sub.kernel32.dll_Sleep
mov byte [0x41f1fd], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40ffb8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov byte [0x41f1fe], 1
mov eax, dword [0x41120c]
test byte [eax + 0x1c], 2
je 0x409b5d
mov byte [0x41f1fe], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40ff58
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x409b5d
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x409b1d
push 0x7d0
call sub.kernel32.dll_Sleep
cmp byte [0x41f1ff], 0
je 0x409b90
mov eax, dword [0x41f200]
call fcn.004035bc
push eax
mov ecx, 0x40e648
mov edx, 0x40e648
mov al, 1
call fcn.00406630
mov byte [0x41f1ff], 0
jmp 0x409b90
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x409b56
cmp dword [ebp - 0x13c], 0x10
je 0x409b90
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 [0x41f1fc], 0
je 0x409ad9
cmp byte [0x41f1fd], 0
je 0x409ad9
cmp byte [0x41f1fe], 0
je 0x409ad9
mov eax, dword [edi]
cmp dword [eax + 0x10], 0
je 0x409ad9
cmp byte [0x41f1ff], 0
je 0x409bb5
mov eax, dword [0x41f200]
call fcn.004035bc
push eax
mov ecx, 0x40e648
mov edx, 0x40e648
mov al, 1
call fcn.00406630
mov eax, dword [edi]
mov dword [eax + 8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409beb
lea eax, [ebp - 0x174]
mov edx, 0xd
call fcn.004031a0
lea eax, [ebp - 0x14]
call fcn.0040317c
ret