Function at 0x40168e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0xddaf831e
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0
push 4
mov eax, dword [ebp - 8]
add eax, 0x1d0
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00405150
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x40
mov edx, dword [ebp - 0x28]
add edx, 0x15
mov dword [ebp - 0x28], edx
mov eax, dword [0x40d03c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 4]
sub ecx, 0xafed872
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x60], 0
jne 0x4017e7
mov dword [ebp - 0x5c], 0x40
cmp dword [ebp - 4], 0xa
jae 0x401778
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x5c]
push eax
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 8]
mov dword [edx + 0x190], eax
mov eax, dword [ebp - 4]
mov dword [0x40d03c], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x190], 0
jne 0x4017d2
push 0x8000
push 0
mov edx, dword [ebp - 8]
xor eax, eax
cmp dword [edx + 0x190], 0
sete al
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x1c], 0x57
mov ecx, dword [ebp - 0x28]
add ecx, 0x456
mov dword [ebp - 0x28], ecx
jmp 0x4017fd
push 0x3e8
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov byte [edx], 1
mov eax, dword [ebp - 8]
cmp dword [eax + 0x190], 0
je 0x401816
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x228], 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x23c]
add eax, 0x50
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x23c], eax
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x190], 0
je 0x401ad3
cmp dword [ebp - 0x1c], 0x57
jne 0x401ad3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x228], 8
jne 0x401866
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x23c]
mov dword [ebp - 0x70], edx
jmp 0x401873
mov eax, dword [ebp - 8]
mov dword [eax + 0x23c], 0
push 0x140
push 0
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00405190
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edx + 0x258], eax
mov ecx, dword [0x40d03c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edx + 0x138], eax
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x78], 4
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x138], 0
jbe 0x401ab2
mov edx, dword [ebp - 8]
cmp dword [edx + 0x228], 8
jne 0x401ab2
mov eax, dword [ebp - 0x1bc]
add eax, 1
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x18], 0x434
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c4], 0x7b
mov ecx, dword [ebp - 0x28]
add ecx, 0xf4291
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x1d4], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x40d03c]
jae 0x401ab0
cmp dword [ebp - 0x1c4], 0x7b
jne 0x401ab0
mov dword [ebp - 0x68], 0
jmp 0x401964
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x68], 4
jae 0x401a06
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x40d03c]
jae 0x401a06
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [ebp - 0x1e8], cl
mov edx, dword [ebp - 0x68]
mov al, byte [ebp + edx - 0x28]
mov byte [ebp - 0x1ec], al
mov al, byte [ebp - 0x1ec]
push eax
mov al, byte [ebp - 0x1e8]
pop bx
xor al, bl
mov byte [ebp - 0x1cc], al
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x1d8], ecx
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x1e4], edx
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dl, byte [ebp - 0x1cc]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x190]
mov dword [ebp - 0x1f0], ecx
mov edx, dword [ebp - 0x1f0]
add edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1c8]
mov byte [edx], al
jmp 0x401952
cmp dword [ebp - 0x24], 0
jbe 0x401aa4
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x68]
mov dl, byte [ecx + 0x104]
mov byte [ebp - 0x1d4], dl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x70]
add ecx, dword [ebp - 0x1f4]
mov dl, byte [ecx]
mov byte [ebp - 0x1c0], dl
mov ah, byte [ebp - 0x1c0]
mov al, byte [ebp - 0x1d4]
xor ah, al
mov byte [ebp - 0x1c0], ah
mov eax, dword [ebp - 0x68]
add eax, 2
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x190]
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1c0]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x68]
sub eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x78]
jae 0x401aa4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
jb 0x401a17
mov dword [ebp - 0x64], 1
jmp 0x40192d
jmp 0x401abb
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040257f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x190]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x1ac], edx
cmp dword [ebp - 0x64], 0
jne 0x401ae0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret