Function at 0x45ccb9
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 0x45cd06
mov ecx, eax
mov eax, ecx
call fcn.00402b47
test al, al
jne 0x45cd06
cmp cx, 0x24
jne 0x45ccf7
mov dword [ebp - 8], 1
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, di
jne 0x45ccdf
lea eax, [ebp + 8]
push eax
call fcn.0042ebab
jmp 0x45cd6e
push 5
push eax
push 0x491d38
call fcn.00435993
add esp, 0xc
test al, al
je 0x45cd2e
mov dword [ebp - 0x14], 1
jmp 0x45cd6f
push 4
lea eax, [ebp + 8]
push eax
push 0x497760
call fcn.00435993
add esp, 0xc
test al, al
je 0x45cd4e
mov dword [ebp - 8], 1
jmp 0x45cd6f
push 5
lea eax, [ebp + 8]
push eax
push str._link
call fcn.00435950
add esp, 0xc
test al, al
jne 0x45cd6f
lea eax, [ebp + 8]
push eax
call fcn.0040418b
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
lea eax, [ebp + 8]
je 0x45cd11
push eax
call fcn.0042ebab
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
jne 0x45cd97
mov eax, 0x80070057
jmp 0x45cf56
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x45cde4
mov ecx, dword [ebp - 4]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043b011
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042ebab
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call fcn.0040418b
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
pop ecx
jne 0x45cde4
mov esi, 0x80070057
jmp 0x45cf4c
and dword [ebp - 8], 0
cmp ax, 0x2d
mov edi, 0x100000
mov dword [ebp - 0xc], edi
mov cl, 0x2a
jne 0x45cdfa
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
jne 0x45ce50
movzx eax, word [ebx + 2]
cmp ecx, eax
jne 0x45ce50
push 3
lea eax, [ebx + 4]
push eax
push 0x49775c
call fcn.0042fae7
add esp, 0xc
test al, al
je 0x45ce50
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
add ebx, 0xa
push eax
mov dword [ebp + 8], ebx
call fcn.004385d3
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 dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], ebx
mov esi, 0x4a7630
mov dword [ebp - 0x1c], eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20]
push eax
push 0x10000
lea eax, [ebp - 0x30]
push eax
push 0x45c9a5
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x45cea5
mov dword [ebp + 0xc], edi
jmp 0x45ceb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x45ceb2
xor eax, eax
inc eax
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], edi
je 0x45ceeb
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e7
cmp dword [ebp - 0x24], 0
je 0x45ced2
push 0
call edi
dec ebx
jns 0x45cec5
mov dword [ebp - 8], 0x270f
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x45cee9
push 1
call edi
dec dword [ebp - 8]
jns 0x45ced9
xor edi, edi
push str.__LastTID
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.00435eb7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, edi
je 0x45cf10
mov dword [ebp + 0xc], 1
cmp dword [ebp + 8], edi
je 0x45cf1e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x45cf49
cmp dword [ebp + 8], edi
je 0x45cf49
push dword [ebp - 0x20]
lea eax, [ebp - 0x6c]
push str.__ncd__u
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.0042282f
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0042eb98
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8