Function at 0x42d850
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5a2df8
mov eax, dword fs:[0]
push eax
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, ecx
push 0x61df64
call fcn.00427560
add esp, 4
cmp dword [0x61df80], 0
ja 0x42d9ef
call fcn.00459b00
test eax, eax
jne 0x42d9ef
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d8c0
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push str.IDS_WIZARD_CAPTION
mov ebx, 5
push ecx
mov dword [esp + 0x22c], ebx
call fcn.005214a0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x228], 6
call fcn.0040cb00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x224], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x22c]
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xe0]
call fcn.0046b6a0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x224], 7
call fcn.004a8264
cmp eax, 1
jne 0x42d9d3
lea ecx, [esp + 0xd4]
call fcn.0046a530
test eax, eax
je 0x42d9d3
push 1
mov ecx, esi
call fcn.0042cfe0
lea ecx, [esp + 0xd4]
call fcn.0046a540
mov ecx, dword [esp + 0x230]
mov dword [ecx], eax
lea ecx, [esp + 0xd4]
call fcn.0046a660
mov edx, dword [esp + 0x234]
mov dword [edx], eax
test eax, eax
je 0x42d9ad
push 0
mov ecx, esi
call fcn.0042cfe0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x224], bl
call fcn.0041dcb0
lea ecx, [esp + 0x14]
call fcn.0040c150
mov eax, 1
jmp 0x42dbcb
lea ecx, [esp + 0xd4]
mov byte [esp + 0x224], bl
call fcn.0041dcb0
mov eax, dword [esp + 0x14]
jmp 0x42dba9
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42da09
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push str.IDS_WIZARD_CAPTION
push ecx
mov dword [esp + 0x22c], 0
call fcn.005214a0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x228], 1
call fcn.0040cb00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x224], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42da72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x22c]
push 0
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.00447fe0
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 2
call fcn.004a8264
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x234]
mov edi, eax
xor eax, eax
cmp dword [esp + 0xd0], eax
push 0
sete al
push 0
mov dword [ecx], eax
mov eax, dword [esp + 0xd4]
push eax
push 0x4201d0
push 0
push 0
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42daf8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
jne 0x42db6a
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
mov byte [esp + 0x224], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42db2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0
call fcn.0041cc50
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x224], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x42db63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42dbcb
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
mov byte [esp + 0x224], 4
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42db94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0
call fcn.0041cc50
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x224], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x42dbc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 0xc