Function at 0x46331e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, eax
movzx eax, word [eax]
push edi
xor edi, edi
xor esi, esi
cmp ax, di
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
je 0x4633b9
mov edx, eax
mov eax, edx
call fcn.00431c5f
test al, al
jne 0x4633b9
cmp dx, 0x24
jne 0x46336f
mov dword [ebp - 0x14], 1
jmp 0x4633ac
cmp dx, 0x2a
jne 0x463380
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
jmp 0x4633ac
cmp dx, 0x2b
jne 0x463391
movsx eax, byte [ecx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
jmp 0x4633ac
cmp dx, 0x26
jne 0x4633a0
mov dword [ebp - 0x30], 1
jmp 0x4633ac
cmp dx, 0x23
jne 0x4633ac
movsx eax, byte [ecx]
mov dword [ebp - 0x2c], eax
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, di
mov dword [ebp - 4], ecx
jne 0x463355
lea eax, [ebp - 4]
push eax
call fcn.00431c97
mov eax, dword [ebp - 4]
mov ebx, eax
mov ax, word [eax]
cmp ax, 0x2d
pop ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x28], 0x80000000
mov cl, 0x2a
jne 0x4633df
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 8], ecx
jne 0x4634d0
push 5
lea eax, [ebp - 4]
push eax
push str._wait
call fcn.00438f31
add esp, 0xc
test al, al
je 0x463413
mov dword [ebp - 0x10], 1
jmp 0x4634c1
push 6
lea eax, [ebp - 4]
push eax
push str._waitx
call fcn.00438f31
add esp, 0xc
test al, al
je 0x463436
mov dword [ebp - 0x10], 2
jmp 0x4634c1
push 5
lea eax, [ebp - 4]
push eax
push str._here
call fcn.00438f31
add esp, 0xc
test al, al
je 0x463454
mov esi, 0x100
jmp 0x4634c1
push 5
lea eax, [ebp - 4]
push eax
push str._idle
call fcn.00438f31
add esp, 0xc
test al, al
je 0x463474
mov dword [ebp - 0x28], 0xfffffff1
jmp 0x4634c1
push 4
lea eax, [ebp - 4]
push eax
push 0x4a0870
call fcn.00438f31
add esp, 0xc
test al, al
je 0x463494
mov dword [ebp - 0x14], 1
jmp 0x4634c1
push 5
lea eax, [ebp - 4]
push eax
push str._link
call fcn.00438f31
add esp, 0xc
test al, al
je 0x4634b7
mov dword [ebp - 0x1c], 0x2a
mov dword [ebp - 0x20], edi
jmp 0x4634c1
lea eax, [ebp - 4]
push eax
call fcn.00404807
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 8], eax
je 0x4633f0
lea eax, [ebp - 4]
push eax
call fcn.00431c97
mov eax, dword [ebp - 4]
cmp word [eax], di
pop ecx
jne 0x4634ec
mov eax, 0x80070057
jmp 0x463777
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
je 0x46351a
mov ecx, dword [ebp - 0xc]
push 1
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.0043eb92
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00431c97
mov ebx, dword [ebp + 8]
mov edi, ebx
jmp 0x463529
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.00431c97
mov edi, dword [ebp - 4]
mov ax, word [edi]
test ax, ax
pop ecx
jne 0x46353c
mov esi, 0x80070057
jmp 0x46376d
and dword [ebp - 0x14], 0
movzx eax, ax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x100000
jne 0x4635ac
movzx eax, word [edi + 2]
cmp dword [ebp - 8], eax
jne 0x4635ac
push 3
lea eax, [edi + 4]
push eax
push 0x4a0864
call fcn.00432c59
add esp, 0xc
test al, al
je 0x4635ac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.0043bfa0
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add eax, 0x1fff
adc ecx, 0
and eax, 0xffffe000
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x4635ac
lea eax, [ebp + 8]
push eax
call fcn.00404807
mov ebx, dword [ebp + 8]
pop ecx
movzx eax, word [ebx]
cmp dword [ebp - 8], eax
je 0x46359f
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x4635c1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x28]
xor eax, eax
cmp esi, eax
mov dword [ebp - 8], eax
je 0x4635cf
cmp dword [ebp - 0x10], eax
jne 0x4635db
push edi
call fcn.0043218f
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
or esi, dword [ebp - 0x30]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], esi
xor edi, edi
cmp dword [ebp - 0x10], 2
mov ebx, 0x4b06b4
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
push ebx
je 0x463631
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x46364f
mov esi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
jmp 0x463649
mov ecx, dword [ebp - 0xc]
push 0x1000
push 0
call fcn.0040da4e
push ebx
call esi
test eax, eax
je 0x463639
lea eax, [ebp - 0x54]
push eax
push 0x10000
lea eax, [ebp - 0x64]
push eax
push 0x46304b
push dword [ebp - 0x18]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x463679
mov dword [ebp + 0xc], esi
jmp 0x463689
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x463686
xor eax, eax
inc eax
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], esi
je 0x4636e2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x3e7
cmp dword [ebp - 0x58], 0
je 0x4636a6
push 0
call esi
dec edi
jns 0x463699
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4636c6
cmp dword [ebp - 0x10], 2
je 0x4636ba
push 1
call esi
jmp 0x4636c6
mov ecx, dword [ebp - 0xc]
push 0
push 1
call fcn.0040da4e
mov edi, dword [ebp - 0x58]
test edi, edi
jne 0x4636ae
cmp dword [ebp - 0x28], 0x80000000
je 0x4636e2
push dword [ebp - 0x28]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [ebp - 0xc]
push str.__LastTID
push dword [ebp - 0x54]
push esi
call fcn.004394c3
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp edi, ebx
je 0x46370a
mov dword [ebp + 0xc], 1
cmp dword [ebp - 0x10], ebx
je 0x46373f
cmp dword [ebp + 8], ebx
je 0x46374d
cmp dword [ebp - 0x54], ebx
je 0x46373f
push dword [ebp - 0x54]
lea eax, [ebp - 0xa0]
push 0x4a084c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov ecx, esi
call fcn.00422634
cmp dword [ebp + 8], ebx
je 0x46374d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x46376a
cmp dword [ebp + 8], ebx
je 0x46376a
push dword [esi + 0x28]
push 1
push 0x451
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00431c4c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8