Function at 0x4019c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
test edi, edi
mov dword [esp + 0x18], edi
je 0x401c66
cmp dword [eax], 0
je 0x401c66
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x41c288]
push 0xe
call fcn.00402950
lea ecx, [esp + 0x20]
mov esi, eax
mov eax, dword [0x41c288]
push ecx
push 0xf
mov dword [esp + 0x34], esi
call fcn.00402950
lea edx, [esp + 0x20]
mov ebx, eax
mov eax, dword [0x41c288]
push edx
push 1
mov dword [esp + 0x24], ebx
call fcn.00402950
test esi, esi
mov dword [esp + 0x28], eax
je 0x401c66
test ebx, ebx
je 0x401c66
test eax, eax
je 0x401c66
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, eax
add eax, eax
je 0x401a67
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x401a73
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add eax, eax
add eax, eax
je 0x401a96
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
sub eax, esi
mov dword [esp + 0x24], eax
jmp 0x401ab4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x24], eax
jmp 0x401ab4
mov edi, dword [esp + 0x18]
mov edx, dword [edi]
cmp word [edx], 0
je 0x401bba
push 0x10830
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ecx]
test eax, eax
je 0x401af5
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x401af7
xor eax, eax
mov edx, dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov edx, dword [ecx]
mov eax, dword [esi]
mov dword [eax + 0x10], edx
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
mov edx, dword [esi]
mov byte [edx + 0x20], 0
mov edx, dword [0x41c290]
mov ecx, dword [esi]
push edx
mov edx, dword [0x41c238]
push eax
mov byte [ecx + 0x21], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
mov eax, dword [esi]
push ecx
push edx
add eax, 0x1002a
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x41c25c]
mov eax, dword [ecx]
add esp, 0x14
test eax, eax
je 0x401b83
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x401b69
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x401b60
cmp dword [eax], 0
je 0x401b83
mov edx, dword [esi]
call fcn.00403480
mov edi, dword [edx]
push eax
call fcn.00402bf0
mov edi, dword [esp + 0x18]
jmp 0x401b85
xor eax, eax
mov ecx, dword [esi]
mov dword [ecx + 0x28], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax + 0x28], ecx
jne 0x401b98
call fcn.00407a30
push ecx
mov dword [eax + 0x18], ecx
push ecx
mov dword [eax + 0x1c], ecx
mov edx, dword [esi]
push edx
push 0x402620
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x24]
mov dword [ecx + esi], eax
add esi, 4
mov edi, dword [edi + 4]
test edi, edi
mov dword [esp + 0x18], edi
jne 0x401ab0
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0xffffffffffffffff
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [esi], edi
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
jbe 0x401c2a
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push eax
push 0
call ebx
push eax
call edi
mov eax, dword [esi]
push eax
push 0
call ebx
push eax
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
add eax, 1
add esi, 4
cmp eax, dword [ecx]
mov dword [esp + 0x18], eax
jb 0x401bf0
mov edx, dword [esp + 0x10]
push edx
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
push 0
call ebx
push eax
call edi
mov ecx, dword [esp + 0x28]
push ecx
push 0
call ebx
push eax
call edi
mov edx, dword [esp + 0x1c]
push edx
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x2c]
push eax
push 0
call ebx
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4