Function at 0x450999
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov ax, word [esi]
push edi
xor edi, edi
cmp ax, di
mov dword [ebp - 4], ecx
mov dword [ebp + 8], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
je 0x4509e6
mov ecx, eax
mov eax, ecx
call fcn.00426fde
test al, al
jne 0x4509e6
cmp cx, 0x24
jne 0x4509d7
mov dword [ebp - 8], 1
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, di
jne 0x4509bf
lea eax, [ebp + 8]
push eax
call fcn.00426ff7
jmp 0x450a4e
push 5
push eax
push str._wait
call fcn.0042dfa9
add esp, 0xc
test al, al
je 0x450a0e
mov dword [ebp - 0x14], 1
jmp 0x450a4f
push 4
lea eax, [ebp + 8]
push eax
push str._exp
call fcn.0042dfa9
add esp, 0xc
test al, al
je 0x450a2e
mov dword [ebp - 8], 1
jmp 0x450a4f
push 5
lea eax, [ebp + 8]
push eax
push str._link
call fcn.0042df66
add esp, 0xc
test al, al
jne 0x450a4f
lea eax, [ebp + 8]
push eax
call fcn.00403c51
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
lea eax, [ebp + 8]
je 0x4509f1
push eax
call fcn.00426ff7
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
jne 0x450a77
mov eax, 0x80070057
jmp 0x450c1f
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x450ac4
mov ecx, dword [ebp - 4]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043c12f
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00426ff7
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call fcn.00403c51
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
pop ecx
jne 0x450ac4
mov esi, 0x80070057
jmp 0x450c15
and dword [ebp - 8], 0
cmp ax, 0x2d
mov edi, 0x100000
mov dword [ebp - 0xc], edi
mov cl, 0x2a
jne 0x450ada
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
jne 0x450b30
movzx eax, word [ebx + 2]
cmp ecx, eax
jne 0x450b30
push 3
lea eax, [ebx + 4]
push eax
push 0x487d6c
call fcn.00427f14
add esp, 0xc
test al, al
je 0x450b30
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
add ebx, 0xa
push eax
mov dword [ebp + 8], ebx
call fcn.0043066d
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add edi, 0x1fff
adc eax, 0
pop ecx
pop ecx
and edi, 0xffffe000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], eax
mov esi, 0x4975bc
mov dword [ebp - 0x1c], ecx
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20]
push eax
push 0x10000
lea eax, [ebp - 0x30]
push eax
push 0x45068d
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x450b85
mov dword [ebp - 8], ebx
jmp 0x450b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x450b92
xor eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
je 0x450bbf
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0xc], 0x270f
cmp dword [ebp - 0x24], ebx
je 0x450bbf
push ebx
call edi
dec dword [ebp + 0xc]
jns 0x450ba7
jmp 0x450bba
push 1
call edi
cmp dword [ebp - 0x24], ebx
jne 0x450bb6
push str.__LastTID
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.0042e3ae
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], ebx
je 0x450be7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x450c12
cmp dword [ebp + 8], ebx
je 0x450c12
push dword [ebp - 0x20]
lea eax, [ebp - 0x6c]
push str.__ncd__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call fcn.0041e921
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0042704a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8