Function at 0x402cf0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4500d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461cb4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.004268c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d31
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0
call fcn.004268c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d63
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
push 0
mov byte [esp + 0x38], 1
mov ecx, dword [0x4661b0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x18b
push ecx
call edi
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x402f40
lea esp, [esp]
mov edx, dword [0x4661b0]
push 0
push esi
push 0x187
push edx
call edi
test eax, eax
jg 0x402dc1
add esi, 1
cmp esi, ebp
jl 0x402da0
jmp 0x402f40
cmp esi, 0xffffffff
je 0x402f40
mov eax, dword [0x4661b0]
push 0
push esi
push 0x18a
push eax
call edi
push 0x104
call fcn.00423efe
mov ecx, dword [0x4661b0]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0x189
push ecx
call edi
test ebx, ebx
jne 0x402e01
xor eax, eax
jmp 0x402e11
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e06
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.0041ff70
test ebx, ebx
jne 0x402e24
xor eax, eax
jmp 0x402e3b
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e30
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.0041ff70
push 0x28
call fcn.00423efe
mov edi, dword [esp + 0x20]
add esp, 4
cmp dword [edi - 0xc], 0
mov esi, eax
jl 0x402e93
push 0x456510
push edi
call fcn.00433415
add esp, 8
test eax, eax
je 0x402e93
sub eax, edi
cmp eax, 0xffffffff
je 0x402e93
mov edx, dword [0x4661d8]
push 0x40
push 0x456520
push 0x45652c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402f37
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x456538
call fcn.0041ed40
mov byte [esp + 0x34], 2
mov edi, dword [esp + 0x1c]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebp, esp
push edi
call fcn.00420060
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x38], 1
call fcn.0041af00
add esp, 4
mov dword [esp + 0x28], esp
mov ebp, esp
push edi
call fcn.00420060
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.004129d0
add esp, 4
push esi
mov dword [esi], eax
call fcn.00412ed0
add esp, 4
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4564b6
call fcn.0041ed40
call fcn.00414360
add esp, 8
push 0
push 0
push esi
push 0x40e2c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi]
imul ecx, ecx, 0xf3
mov dword [ecx + 0x466489], eax
push ebx
call fcn.00423ef9
add esp, 4
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret