Function at 0x474f3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
mov ecx, eax
movzx eax, word [eax]
push edi
xor edi, edi
inc edi
cmp ax, si
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x18], esi
je 0x474fd6
mov edx, eax
mov eax, edx
call fcn.00482120
test al, al
jne 0x474fd6
cmp dx, 0x24
jne 0x474f90
mov dword [ebp - 8], edi
jmp 0x474fc9
cmp dx, 0x2a
jne 0x474fa1
movsx eax, byte [ecx]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], esi
jmp 0x474fc9
cmp dx, 0x2b
jne 0x474fb2
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esi
jmp 0x474fc9
cmp dx, 0x26
jne 0x474fbd
mov dword [ebp - 0x24], edi
jmp 0x474fc9
cmp dx, 0x23
jne 0x474fc9
movsx eax, byte [ecx]
mov dword [ebp - 0x5c], eax
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, si
mov dword [ebp - 4], ecx
jne 0x474f7a
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x50], str.__LastTID
mov dword [ebp - 0x58], esi
call fcn.004379a9
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov ax, word [eax]
cmp ax, 0x2d
pop ecx
mov dword [ebp - 0x4c], 0x80000000
mov cl, 0x2a
jne 0x47500a
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x4751cb
push 5
pop edi
push edi
lea eax, [ebp - 4]
push eax
push 0x4a6b1c
call fcn.0043f200
add esp, 0xc
test al, al
je 0x475040
mov dword [ebp - 0x2c], 1
jmp 0x4751bc
push 6
lea eax, [ebp - 4]
push eax
push str._waitx
call fcn.0043f200
add esp, 0xc
test al, al
je 0x475063
mov dword [ebp - 0x2c], 2
jmp 0x4751bc
push edi
lea eax, [ebp - 4]
push eax
push str._here
call fcn.0043f200
add esp, 0xc
test al, al
je 0x475082
or byte [ebp - 0x13], 1
jmp 0x4751bc
push 6
lea eax, [ebp - 4]
push eax
push str._delay
call fcn.0043f200
add esp, 0xc
test al, al
je 0x4750a2
or byte [ebp - 0x17], 2
jmp 0x4751bc
push edi
lea eax, [ebp - 4]
push eax
push str._idle
call fcn.0043f200
add esp, 0xc
test al, al
je 0x4750c4
mov dword [ebp - 0x4c], 0xfffffff1
jmp 0x4751bc
push 4
lea eax, [ebp - 4]
push eax
push str._exp
call fcn.0043f200
add esp, 0xc
test al, al
je 0x4750e7
mov dword [ebp - 8], 1
jmp 0x4751bc
push edi
lea eax, [ebp - 4]
push eax
push str._link
call fcn.0043f200
add esp, 0xc
test al, al
je 0x47510c
mov dword [ebp - 0x28], 0x2a
mov dword [ebp - 0x1c], esi
jmp 0x4751bc
push edi
push dword [ebp - 4]
push str._tid:
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x47514e
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xa
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call fcn.004050f3
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043d5a1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
jmp 0x47518f
push 6
push dword [ebp - 4]
push str._htid:
call fcn.00438b8f
add esp, 0xc
test al, al
lea eax, [ebp - 4]
push eax
je 0x4751b6
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xc
mov ebx, dword [ebp - 4]
call fcn.004050f3
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0043d5a1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
cmp edi, dword [ebp - 4]
jae 0x4751ab
mov ecx, dword [ebp - 4]
sub ecx, edi
dec ecx
shr ecx, 1
inc ecx
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
call fcn.004379a9
jmp 0x4751bb
call fcn.0040507c
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x47501b
movsx ebx, word [ebp - 0x18]
or ebx, dword [ebp - 0x14]
lea eax, [ebp - 4]
or ebx, dword [ebp - 0x24]
push eax
call fcn.004379a9
mov eax, dword [ebp - 4]
cmp word [eax], si
pop ecx
jne 0x4751f1
mov esi, 0x80070057
jmp 0x4755d1
cmp dword [ebp - 8], esi
mov dword [ebp - 0x34], esi
je 0x47521f
mov ecx, dword [ebp - 0xc]
push 1
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.0044b30d
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004379a9
mov edi, dword [ebp + 8]
jmp 0x475231
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004379a9
mov edi, dword [ebp - 4]
mov ax, word [edi]
cmp ax, si
pop ecx
jne 0x475244
mov esi, 0x80070057
jmp 0x4755c9
movzx eax, ax
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x48], 0x100000
mov dword [ebp - 0x44], esi
jne 0x4752af
movzx eax, word [edi + 2]
cmp dword [ebp - 0x10], eax
jne 0x4752af
push 3
lea eax, [edi + 4]
push eax
push 0x4ae784
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x4752af
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.00441c9a
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
add eax, 0x1fff
adc ecx, esi
and eax, 0xffffe000
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x4752af
lea eax, [ebp + 8]
push eax
call fcn.0040507c
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x4752a5
cmp dword [ebp - 0x28], esi
je 0x4752c7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
jmp 0x4752c9
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x54], eax
jne 0x4752dc
cmp eax, esi
je 0x4752dc
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x4752eb
xor edi, edi
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
je 0x4752eb
cmp dword [ebp - 0x2c], esi
jne 0x4752ff
cmp eax, esi
je 0x4752ff
cmp edi, esi
je 0x4752ff
push eax
call fcn.00438043
pop ecx
mov dword [ebp - 4], eax
jmp 0x475302
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x68], eax
call fcn.0048f9e8
cmp eax, esi
pop ecx
je 0x475328
mov ecx, dword [ebp - 0xc]
push 1
push dword [ecx + 0x44]
mov ecx, eax
call fcn.00437b17
jmp 0x47532a
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov dword [ebp - 8], eax
je 0x475340
xor edi, edi
lea eax, [ebp - 0x20]
push 0x9c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x64], eax
call fcn.0048f9e8
cmp eax, esi
pop ecx
je 0x475365
push edi
push dword [ebp - 0xc]
mov ecx, eax
call fcn.0042eb0b
jmp 0x475367
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
jne 0x475376
mov byte [eax + 0x91], 1
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x20]
mov esi, 0x4bdfa0
jne 0x47538d
cmp dword [ebp - 0x10], 0
jne 0x47538d
mov dword [edi + 0x24], esi
mov eax, dword [ebp - 8]
push 0
mov dword [edi + 0x48], eax
push dword [ebp - 0x34]
mov ecx, edi
call fcn.00448207
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x44], eax
mov dword [ebp - 8], esi
je 0x4753b3
mov eax, dword [ebp - 0xc]
jmp 0x4753c3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4753c6
mov eax, dword [eax + 0x150]
mov dword [edi + 0x24], eax
mov dword [ebp - 8], eax
mov esi, 0x4beb4c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp - 8]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.00439f03
cmp dword [ebp - 0x24], 0
je 0x4753f1
push 0
push edi
xor eax, eax
call fcn.0044c11a
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x4753fe
add dword [0x4be310], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x92]
mov byte [edi + 0x92], cl
mov al, byte [eax + 9]
mov byte [edi + 9], al
je 0x475424
mov byte [edi + 9], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004457e4
push 0x44
lea ecx, [ebp - 8]
call fcn.0043d373
mov esi, dword [ebp - 8]
push esi
call fcn.00437932
mov eax, dword [ebp - 0xc]
or ebx, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
pop ecx
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea eax, [ebp - 0x38]
push eax
push 0x10000
push esi
push 0x474d80
push dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
push ecx
mov byte [ebp + 0xb], cl
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x4755ea
cmp dword [ebp - 0x1c], eax
jne 0x4754e1
mov esi, 0x4beb4c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
sub dword [0x4be310], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4754ec
inc eax
mov dword [ebp + 0xc], eax
xor ebx, ebx
cmp edi, ebx
je 0x475514
cmp dword [ebp - 0x4c], 0x80000000
je 0x475508
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x50]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x38]
push esi
call fcn.0043f7c8
mov eax, dword [ebp - 0x58]
add esp, 0xc
cmp eax, ebx
je 0x475545
cmp word [eax], bx
je 0x475545
push eax
push edi
push esi
call fcn.00426547
add esp, 0xc
test eax, eax
je 0x475545
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x2c], ebx
je 0x475579
cmp edi, ebx
je 0x475579
cmp dword [ebp - 0x38], ebx
je 0x475579
push dword [ebp - 0x38]
lea eax, [ebp - 0xa4]
push 0x4ae76c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
call fcn.004258c6
cmp dword [ebp - 4], ebx
je 0x475595
cmp edi, ebx
jne 0x475599
push dword [esi + 0x28]
push 1
push 0x451
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, ebx
je 0x4755a6
cmp byte [ebp + 0xb], 0
jne 0x4755a6
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 8]
call fcn.00437960
lea ecx, [ebp - 0x18]
call fcn.00437960
lea ecx, [ebp - 0x64]
call fcn.004456b1
lea ecx, [ebp - 0x68]
call fcn.0046ca14
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call fcn.00437960
lea ecx, [ebp - 0x3c]
call fcn.00437960
lea ecx, [ebp - 0x40]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
xor ebx, ebx
mov dword [ebp + 0xc], ebx
jmp 0x4754f1