Function at 0x474e74
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 0x474f0e
mov edx, eax
mov eax, edx
call fcn.004820ac
test al, al
jne 0x474f0e
cmp dx, 0x24
jne 0x474ec8
mov dword [ebp - 8], edi
jmp 0x474f01
cmp dx, 0x2a
jne 0x474ed9
movsx eax, byte [ecx]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], esi
jmp 0x474f01
cmp dx, 0x2b
jne 0x474eea
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esi
jmp 0x474f01
cmp dx, 0x26
jne 0x474ef5
mov dword [ebp - 0x24], edi
jmp 0x474f01
cmp dx, 0x23
jne 0x474f01
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 0x474eb2
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.004378b6
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 0x474f42
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x475103
push 5
pop edi
push edi
lea eax, [ebp - 4]
push eax
push 0x4a6acc
call fcn.0043f128
add esp, 0xc
test al, al
je 0x474f78
mov dword [ebp - 0x2c], 1
jmp 0x4750f4
push 6
lea eax, [ebp - 4]
push eax
push str._waitx
call fcn.0043f128
add esp, 0xc
test al, al
je 0x474f9b
mov dword [ebp - 0x2c], 2
jmp 0x4750f4
push edi
lea eax, [ebp - 4]
push eax
push str._here
call fcn.0043f128
add esp, 0xc
test al, al
je 0x474fba
or byte [ebp - 0x13], 1
jmp 0x4750f4
push 6
lea eax, [ebp - 4]
push eax
push str._delay
call fcn.0043f128
add esp, 0xc
test al, al
je 0x474fda
or byte [ebp - 0x17], 2
jmp 0x4750f4
push edi
lea eax, [ebp - 4]
push eax
push str._idle
call fcn.0043f128
add esp, 0xc
test al, al
je 0x474ffc
mov dword [ebp - 0x4c], 0xfffffff1
jmp 0x4750f4
push 4
lea eax, [ebp - 4]
push eax
push str._exp
call fcn.0043f128
add esp, 0xc
test al, al
je 0x47501f
mov dword [ebp - 8], 1
jmp 0x4750f4
push edi
lea eax, [ebp - 4]
push eax
push str._link
call fcn.0043f128
add esp, 0xc
test al, al
je 0x475044
mov dword [ebp - 0x28], 0x2a
mov dword [ebp - 0x1c], esi
jmp 0x4750f4
push edi
push dword [ebp - 4]
push str._tid:
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x475086
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xa
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call fcn.00405061
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043d4c9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
jmp 0x4750c7
push 6
push dword [ebp - 4]
push str._htid:
call fcn.00438aa1
add esp, 0xc
test al, al
lea eax, [ebp - 4]
push eax
je 0x4750ee
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xc
mov ebx, dword [ebp - 4]
call fcn.00405061
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0043d4c9
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
cmp edi, dword [ebp - 4]
jae 0x4750e3
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.004378b6
jmp 0x4750f3
call fcn.00407fcf
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x474f53
movsx ebx, word [ebp - 0x18]
or ebx, dword [ebp - 0x14]
lea eax, [ebp - 4]
or ebx, dword [ebp - 0x24]
push eax
call fcn.004378b6
mov eax, dword [ebp - 4]
cmp word [eax], si
pop ecx
jne 0x475129
mov esi, 0x80070057
jmp 0x475519
cmp dword [ebp - 8], esi
mov dword [ebp - 0x34], esi
je 0x475157
mov ecx, dword [ebp - 0xc]
push 1
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.0044b25d
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004378b6
mov edi, dword [ebp + 8]
jmp 0x475169
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004378b6
mov edi, dword [ebp - 4]
mov ax, word [edi]
cmp ax, si
pop ecx
jne 0x47517c
mov esi, 0x80070057
jmp 0x475511
movzx eax, ax
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x48], 0x100000
mov dword [ebp - 0x44], esi
jne 0x4751e7
movzx eax, word [edi + 2]
cmp dword [ebp - 0x10], eax
jne 0x4751e7
push 3
lea eax, [edi + 4]
push eax
push 0x4ae734
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x4751e7
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.00441bc2
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 0x4751e7
lea eax, [ebp + 8]
push eax
call fcn.00407fcf
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x4751dd
cmp dword [ebp - 0x28], esi
je 0x4751ff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
jmp 0x475201
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x54], eax
jne 0x475214
cmp eax, esi
je 0x475214
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x475223
xor edi, edi
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
je 0x475223
cmp dword [ebp - 0x2c], esi
jne 0x475237
cmp eax, esi
je 0x475237
cmp edi, esi
je 0x475237
push eax
call fcn.00437f55
pop ecx
mov dword [ebp - 4], eax
jmp 0x47523a
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x68], eax
call fcn.0048f958
cmp eax, esi
pop ecx
je 0x475260
mov ecx, dword [ebp - 0xc]
push 1
push dword [ecx + 0x44]
mov ecx, eax
call fcn.00437a24
jmp 0x475262
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 0x475278
xor edi, edi
lea eax, [ebp - 0x20]
push 0x9c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x64], eax
call fcn.0048f958
cmp eax, esi
pop ecx
je 0x47529d
push edi
push dword [ebp - 0xc]
mov ecx, eax
call fcn.0042ea51
jmp 0x47529f
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
jne 0x4752ae
mov byte [eax + 0x91], 1
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x20]
mov esi, 0x4bdfa0
jne 0x4752c5
cmp dword [ebp - 0x10], 0
jne 0x4752c5
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.0044814b
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x44], eax
mov dword [ebp - 8], esi
je 0x4752eb
mov eax, dword [ebp - 0xc]
jmp 0x4752fb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4752fe
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.00439e15
cmp dword [ebp - 0x24], 0
je 0x475329
push 0
push edi
xor eax, eax
call fcn.0044c06a
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x475336
add dword [0x4be310], 1
cmp byte [0x4bddcd], 0
jne 0x475346
mov byte [0x4bddcd], 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 0x47536c
mov byte [edi + 9], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00445746
push 0x44
lea ecx, [ebp - 8]
call fcn.0043d29b
mov esi, dword [ebp - 8]
push esi
call fcn.00437856
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 0x474cb8
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 0x475532
cmp dword [ebp - 0x1c], eax
jne 0x475429
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 0x475434
inc eax
mov dword [ebp + 0xc], eax
xor ebx, ebx
cmp edi, ebx
je 0x47545c
cmp dword [ebp - 0x4c], 0x80000000
je 0x475450
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.0043f6f0
mov eax, dword [ebp - 0x58]
add esp, 0xc
cmp eax, ebx
je 0x47548d
cmp word [eax], bx
je 0x47548d
push eax
push edi
push esi
call fcn.0042648d
add esp, 0xc
test eax, eax
je 0x47548d
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x2c], ebx
je 0x4754c1
cmp edi, ebx
je 0x4754c1
cmp dword [ebp - 0x38], ebx
je 0x4754c1
push dword [ebp - 0x38]
lea eax, [ebp - 0xa4]
push 0x4ae71c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
call fcn.00425802
cmp dword [ebp - 4], ebx
je 0x4754dd
cmp edi, ebx
jne 0x4754e1
push dword [esi + 0x28]
push 1
push 0x451
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, ebx
je 0x4754ee
cmp byte [ebp + 0xb], 0
jne 0x4754ee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.00437884
lea ecx, [ebp - 0x18]
call fcn.00437884
lea ecx, [ebp - 0x64]
call fcn.00445613
lea ecx, [ebp - 0x68]
call fcn.0046c933
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call fcn.00437884
lea ecx, [ebp - 0x3c]
call fcn.00437884
lea ecx, [ebp - 0x40]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
xor ebx, ebx
mov dword [ebp + 0xc], ebx
jmp 0x475439