Function at 0x450d8b
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 0x450dd8
mov ecx, eax
mov eax, ecx
call fcn.00402a89
test al, al
jne 0x450dd8
cmp cx, 0x24
jne 0x450dc9
mov dword [ebp - 8], 1
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, di
jne 0x450db1
lea eax, [ebp + 8]
push eax
call fcn.00427312
jmp 0x450e40
push 5
push eax
push 0x487d80
call fcn.0042e31d
add esp, 0xc
test al, al
je 0x450e00
mov dword [ebp - 0x14], 1
jmp 0x450e41
push 4
lea eax, [ebp + 8]
push eax
push str._exp
call fcn.0042e31d
add esp, 0xc
test al, al
je 0x450e20
mov dword [ebp - 8], 1
jmp 0x450e41
push 5
lea eax, [ebp + 8]
push eax
push str._link
call fcn.0042e2da
add esp, 0xc
test al, al
jne 0x450e41
lea eax, [ebp + 8]
push eax
call fcn.00403cc8
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
lea eax, [ebp + 8]
je 0x450de3
push eax
call fcn.00427312
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
jne 0x450e69
mov eax, 0x80070057
jmp 0x451011
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x450eb6
mov ecx, dword [ebp - 4]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043c527
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00427312
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call fcn.00403cc8
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
pop ecx
jne 0x450eb6
mov esi, 0x80070057
jmp 0x451007
and dword [ebp - 8], 0
cmp ax, 0x2d
mov edi, 0x100000
mov dword [ebp - 0xc], edi
mov cl, 0x2a
jne 0x450ecc
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
jne 0x450f22
movzx eax, word [ebx + 2]
cmp ecx, eax
jne 0x450f22
push 3
lea eax, [ebx + 4]
push eax
push 0x487d74
call fcn.00428263
add esp, 0xc
test al, al
je 0x450f22
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
add ebx, 0xa
push eax
mov dword [ebp + 8], ebx
call fcn.004309e1
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 0x450a7f
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x450f77
mov dword [ebp - 8], ebx
jmp 0x450f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x450f84
xor eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
je 0x450fb1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0xc], 0x270f
cmp dword [ebp - 0x24], ebx
je 0x450fb1
push ebx
call edi
dec dword [ebp + 0xc]
jns 0x450f99
jmp 0x450fac
push 1
call edi
cmp dword [ebp - 0x24], ebx
jne 0x450fa8
push str.__LastTID
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.0042e722
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], ebx
je 0x450fd9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x451004
cmp dword [ebp + 8], ebx
je 0x451004
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.0041ec33
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.00427365
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8