Function at 0x488084
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
cmp word [eax], si
mov ecx, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], 0x100000
mov dword [ebp - 0x4c], esi
jmp 0x488130
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.004b1b03
test al, al
jne 0x488135
cmp dx, 0x24
jne 0x4880e2
mov dword [ebp - 0x10], edi
jmp 0x48812b
cmp dx, 0x2a
jne 0x488102
movsx eax, byte [ecx]
mov dword [ebp - 8], eax
lea eax, [ecx + 2]
cmp word [eax], 0x3f
jne 0x4880fd
or byte [ebp - 7], 1
mov ecx, eax
mov dword [ebp - 0x1c], esi
jmp 0x48812b
cmp dx, 0x2b
jne 0x488114
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 8], 0
jmp 0x48812b
cmp dx, 0x26
jne 0x48811f
mov dword [ebp - 0x34], edi
jmp 0x48812b
cmp dx, 0x23
jne 0x48812b
movsx eax, byte [ecx]
mov dword [ebp - 0x2c], eax
inc ecx
inc ecx
cmp word [ecx], si
mov dword [ebp - 4], ecx
jne 0x4880c7
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], str.__LastTID
mov dword [ebp - 0x60], esi
call fcn.0043fe57
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov ax, word [eax]
cmp ax, 0x2d
pop ecx
mov dword [ebp - 0x48], 0x80000000
mov cl, 0x2a
jne 0x488169
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 0xc], ecx
jne 0x48836e
push 5
pop ebx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4ca134
call fcn.0044863c
add esp, 0xc
test al, al
je 0x48819f
mov dword [ebp - 0x28], 1
jmp 0x48835f
push 6
pop edi
push edi
lea eax, [ebp - 4]
push eax
push str._waitx
call fcn.0044863c
add esp, 0xc
test al, al
je 0x4881c4
mov dword [ebp - 0x28], 2
jmp 0x48835f
push ebx
lea eax, [ebp - 4]
push eax
push str._here
call fcn.0044863c
add esp, 0xc
test al, al
je 0x4881e3
or byte [ebp - 0x17], 1
jmp 0x48835f
push edi
lea eax, [ebp - 4]
push eax
push 0x4cbc60
call fcn.0044863c
add esp, 0xc
test al, al
je 0x488202
or byte [ebp - 0x1f], 2
jmp 0x48835f
push edi
lea eax, [ebp - 4]
push eax
push str._waitp
call fcn.0044863c
add esp, 0xc
test al, al
je 0x488224
mov dword [ebp - 0x44], 0x400
jmp 0x48835f
push ebx
lea eax, [ebp - 4]
push eax
push str._idle
call fcn.0044863c
add esp, 0xc
test al, al
je 0x488246
mov dword [ebp - 0x48], 0xfffffff1
jmp 0x48835f
push 4
lea eax, [ebp - 4]
push eax
push 0x4d25a8
call fcn.0044863c
add esp, 0xc
test al, al
je 0x488269
mov dword [ebp - 0x10], 1
jmp 0x48835f
push edi
lea eax, [ebp - 4]
push eax
push str._link_
call fcn.0044863c
add esp, 0xc
test al, al
je 0x48828e
mov dword [ebp - 8], 0x12a
mov dword [ebp - 0x1c], esi
jmp 0x48835f
push ebx
lea eax, [ebp - 4]
push eax
push str._link
call fcn.0044863c
add esp, 0xc
test al, al
je 0x4882ad
mov dword [ebp - 8], 0x2a
jmp 0x488286
mov edi, dword [ebp - 4]
push 4
add edi, 2
push edi
push str.tid:
call fcn.00441277
add esp, 0xc
test al, al
je 0x4882f4
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xa
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call fcn.00405c44
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.004466b2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
jmp 0x488332
push ebx
push edi
push str.htid:
call fcn.00441277
add esp, 0xc
test al, al
lea eax, [ebp - 4]
push eax
je 0x488359
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xc
mov ebx, dword [ebp - 4]
call fcn.00405c44
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.004466b2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
cmp edi, dword [ebp - 4]
jae 0x48834e
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.0043fe57
jmp 0x48835e
call fcn.00408f31
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0xc], eax
je 0x48817a
cmp dword [ebp - 0x1c], esi
jne 0x488378
cmp dword [ebp - 0x28], esi
je 0x48837b
mov dword [ebp - 0x44], esi
movsx eax, word [ebp - 0x20]
or eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x34]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 4]
push eax
call fcn.0043fe57
mov eax, dword [ebp - 4]
cmp word [eax], si
pop ecx
jne 0x4883a7
mov esi, 0x80070057
jmp 0x4887bd
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0x3c], esi
je 0x4883c7
mov ecx, dword [ebp - 0x14]
push 1
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.00457f62
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043fe57
mov edi, dword [ebp + 8]
mov ax, word [edi]
cmp ax, si
pop ecx
jne 0x4883e6
mov esi, 0x80070057
jmp 0x4887b5
movzx ebx, ax
cmp dword [ebp - 0xc], ebx
jne 0x488455
movzx eax, word [edi + 2]
cmp dword [ebp - 0xc], eax
jne 0x48843b
push 3
lea eax, [edi + 4]
push eax
push 0x4d2584
call fcn.00441277
add esp, 0xc
test al, al
je 0x48843b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.0044c029
mov eax, dword [ebp - 0x50]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
add eax, 0x1fff
adc ecx, esi
and eax, 0xffffe000
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0xc], ebx
jne 0x488455
lea eax, [ebp + 8]
push eax
call fcn.00408f31
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp dword [ebp - 0xc], eax
pop ecx
je 0x488440
cmp byte [ebp - 8], 0
mov edi, dword [ebp - 0x14]
je 0x488463
mov ebx, dword [edi + 0x28]
jmp 0x488465
xor ebx, ebx
cmp dword [ebp - 0x18], esi
je 0x48846f
cmp dword [ebp - 0x28], esi
jne 0x4884ad
cmp ebx, esi
je 0x4884ad
cmp dword [ebx + 0x128], esi
mov dword [ebp - 0x5c], 1
je 0x48848c
test byte [ebp - 7], 1
jne 0x4883dc
lea eax, [ebp - 0x40]
push 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x6c], eax
call fcn.004b4768
cmp eax, esi
pop ecx
je 0x4884b2
push dword [edi + 0x44]
mov ecx, eax
call fcn.00440001
jmp 0x4884b4
mov dword [ebp - 0x5c], esi
jmp 0x48848c
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push 0x9c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x64], eax
call fcn.004b4768
cmp eax, esi
pop ecx
je 0x4884e3
push ebx
push edi
mov ecx, eax
call fcn.004152c6
jmp 0x4884e5
xor eax, eax
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x30], eax
jne 0x4884f4
mov byte [eax + 0x91], 1
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x30]
mov esi, 0x4e3110
jne 0x488509
test ebx, ebx
jne 0x488509
mov dword [edi + 0x24], esi
mov eax, dword [ebp - 0x10]
push 0
mov dword [edi + 0x48], eax
push dword [ebp - 0x3c]
mov ecx, edi
call fcn.00453603
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [edi + 0x44], eax
mov dword [ebp - 0xc], esi
je 0x48852f
mov eax, dword [ebp - 0x14]
jmp 0x48853c
test ebx, ebx
je 0x48853f
mov eax, dword [ebx + 0x1a4]
mov dword [edi + 0x24], eax
mov dword [ebp - 0xc], eax
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x18], 0
jne 0x48858a
cmp byte [ebp - 8], 0
je 0x48858a
cmp dword [ebp - 0x28], 0
je 0x48858a
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edx, 0x7fffd
test eax, eax
je 0x48858d
mov cl, byte [eax + 0x91]
test cl, 1
je 0x48857a
test cl, 0x42
jne 0x488582
dec edx
mov eax, dword [eax + 0x24]
jns 0x488566
jmp 0x48858d
mov dword [edi + 0x24], eax
mov dword [ebp - 0xc], eax
jmp 0x48858d
mov esi, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov ecx, edi
push esi
call fcn.004427ae
cmp dword [ebp - 0x34], 0
je 0x4885aa
push 0
push edi
xor eax, eax
call fcn.0045939a
pop ecx
pop ecx
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x34], 0
mov al, byte [esi + 0x92]
mov byte [edi + 0x92], al
mov al, byte [esi + 9]
mov byte [edi + 9], al
je 0x4885d1
mov byte [edi + 9], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004505eb
push 0x44
lea ecx, [ebp - 0x10]
call fcn.00446437
mov esi, dword [ebp - 0x10]
push esi
call fcn.0043fdd1
mov eax, dword [ebp - 0x20]
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
movsx eax, byte [ebp - 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x68]
or eax, dword [ebp - 0x34]
mov byte [ebp + 0xb], cl
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x24]
push eax
push 0x10004
push esi
push 0x487de7
push dword [ebp - 0x50]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4886f0
xor edi, edi
cmp dword [ebp - 0x5c], edi
je 0x488679
push ebx
call fcn.004406ae
pop ecx
jmp 0x48867b
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov dword [esi], ebx
mov esi, 0x4e3d84
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x1c], edi
jne 0x4886ad
add dword [0x4e34c8], 1
cmp dword [ebp - 0x44], edi
je 0x4886ad
add dword [0x4e34cc], 1
cmp byte [0x4e2e84], 0
jne 0x4886bd
mov byte [0x4e2e84], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x48], 0x80000000
je 0x4886d9
push dword [ebp - 0x48]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], edi
jmp 0x488703
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4886fb
inc eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor edi, edi
cmp dword [ebp - 0x38], edi
je 0x488717
push dword [ebp - 0x58]
push dword [ebp - 0x24]
push ebx
call fcn.00448c53
add esp, 0xc
push str.__LastTID
push dword [ebp - 0x24]
push ebx
call fcn.00448c53
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp eax, edi
je 0x488749
cmp word [eax], di
je 0x488749
push eax
push dword [ebp + 0xc]
push ebx
call fcn.0042d49a
add esp, 0xc
test eax, eax
je 0x488749
mov byte [ebp + 0xb], 1
cmp dword [ebp + 0xc], edi
je 0x48875d
cmp byte [ebp + 0xb], 0
jne 0x48875d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], edi
je 0x488792
cmp dword [ebp + 0xc], edi
je 0x488792
cmp dword [ebp - 0x24], edi
je 0x488792
push dword [ebp - 0x24]
lea eax, [ebp - 0xa8]
push 0x4d256c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov ecx, ebx
call fcn.0042c40d
lea ecx, [ebp - 0x10]
call fcn.0043fe25
lea ecx, [ebp - 0x20]
call fcn.0043fe25
lea ecx, [ebp - 0x64]
call fcn.00450499
lea ecx, [ebp - 0x6c]
call fcn.0047f1a6
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
call fcn.0043fe25
lea ecx, [ebp - 0x54]
call fcn.0043fe25
lea ecx, [ebp - 0x38]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8