Function at 0x40fd82
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000006
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x164
call fcn.0050deb0
add esp, 0x10
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push dword [ebp + 0x14]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push dword [ebp + 0x1c]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push dword [ebp + 0x24]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp + 0x2c]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x80000301
push 0
push dword [ebp + 0x34]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000301
push 0
push dword [ebp + 0x3c]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000301
push 0
push dword [ebp + 0x44]
push 1
mov ebx, 0x168
call fcn.0050c5e0
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x5e30b5
push dword [ebp - 0x34]
push 0x5e30b5
push dword [ebp - 0x30]
push 0x5e30b5
push dword [ebp - 0x2c]
push 0x5e30b5
push dword [ebp - 0x28]
push 0x5e30b5
push dword [ebp - 0x24]
push 0x5e30b5
push dword [ebp - 0x20]
push 0x5e30b5
push dword [ebp - 0x1c]
push 0x5e30b5
push dword [ebp - 0x18]
push 0x5e30b5
push dword [ebp - 0x14]
mov ecx, 0x12
call fcn.004012c5
add esp, 0x48
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ff31
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ff41
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ff51
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ff61
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ff71
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ff81
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ff91
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ffa1
push ebx
call fcn.0050c0b3
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ffb1
push ebx
call fcn.0050c0b3
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ffc5
push ebx
call fcn.0050c0b3
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0041004f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 0x4c]
push 0
push dword [ebp - 0xc]
push 0x4105c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41000e
push 6
call fcn.0050c0b9
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 1
push 1
mov ebx, 0x67c
call fcn.0050dea0
add esp, 0x10
mov eax, dword [ebp - 8]
jmp 0x410037
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x410048
push ebx
call fcn.0050c0b3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x4c