Function at 0x45b8c5
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 0x45b912
mov ecx, eax
mov eax, ecx
call fcn.00402b57
test al, al
jne 0x45b912
cmp cx, 0x24
jne 0x45b903
mov dword [ebp - 8], 1
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, di
jne 0x45b8eb
lea eax, [ebp + 8]
push eax
call fcn.0042dd40
jmp 0x45b97a
push 5
push eax
push str._wait
call fcn.00434a40
add esp, 0xc
test al, al
je 0x45b93a
mov dword [ebp - 0x14], 1
jmp 0x45b97b
push 4
lea eax, [ebp + 8]
push eax
push 0x496668
call fcn.00434a40
add esp, 0xc
test al, al
je 0x45b95a
mov dword [ebp - 8], 1
jmp 0x45b97b
push 5
lea eax, [ebp + 8]
push eax
push str._link
call fcn.004349fd
add esp, 0xc
test al, al
jne 0x45b97b
lea eax, [ebp + 8]
push eax
call fcn.0040417e
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
lea eax, [ebp + 8]
je 0x45b91d
push eax
call fcn.0042dd40
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
jne 0x45b9a3
mov eax, 0x80070057
jmp 0x45bb62
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x45b9f0
mov ecx, dword [ebp - 4]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00439f34
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0042dd40
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call fcn.0040417e
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
cmp ax, di
pop ecx
pop ecx
jne 0x45b9f0
mov esi, 0x80070057
jmp 0x45bb58
and dword [ebp - 8], 0
cmp ax, 0x2d
mov edi, 0x100000
mov dword [ebp - 0xc], edi
mov cl, 0x2a
jne 0x45ba06
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
jne 0x45ba5c
movzx eax, word [ebx + 2]
cmp ecx, eax
jne 0x45ba5c
push 3
lea eax, [ebx + 4]
push eax
push 0x496664
call fcn.0042ecb0
add esp, 0xc
test al, al
je 0x45ba5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
add ebx, 0xa
push eax
mov dword [ebp + 8], ebx
call fcn.004374f6
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, 0x4a6630
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 0x45b5b1
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x45bab1
mov dword [ebp + 0xc], edi
jmp 0x45bac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x45babe
xor eax, eax
inc eax
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], edi
je 0x45baf7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e7
cmp dword [ebp - 0x24], 0
je 0x45bade
push 0
call edi
dec ebx
jns 0x45bad1
mov dword [ebp - 8], 0x270f
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x45baf5
push 1
call edi
dec dword [ebp - 8]
jns 0x45bae5
xor edi, edi
push str.__LastTID
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.00434e74
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, edi
je 0x45bb1c
mov dword [ebp + 0xc], 1
cmp dword [ebp + 8], edi
je 0x45bb2a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x45bb55
cmp dword [ebp + 8], edi
je 0x45bb55
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.00421d99
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8