Function at 0x486230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb8d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
mov cl, byte [ebp + 0x20]
mov al, cl
and cl, 0xf
and al, 0xc0
mov byte [ebp + 0x20], cl
mov ecx, dword [ebp + 0x28]
push ebx
mov byte [esp + 7], al
mov eax, dword [ecx + 0x10]
xor edx, edx
cmp eax, edx
push esi
push edi
je 0x486402
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x486402
mov edi, dword [eax + 0x18]
cmp edi, edx
mov dword [esp + 0x1c], edi
jne 0x48628e
mov dword [ecx + 0x10], edx
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, 0xb4
mov dword [esp + 0x14], ebx
jle 0x4862b2
mov dword [esp + 0x14], 0xb4
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0xf], 0x80
jne 0x48640d
push 0x51d5c4
mov dword [esp + 0x14], 0x51d5c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dl, byte [ebp + 0x20]
xor eax, eax
mov dword [esp + 0x90], eax
mov ecx, 0xb6
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x120], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c4], ecx
mov dword [esp + 0x37c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2cc], eax
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x2c0], dl
lea ecx, [ebx + ebx]
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x2bc], eax
mov dword [esp + 0x2b4], ebx
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
push 0x51d598
push 0x10000
lea eax, [esp + 0x98]
push eax
push 0x485910
mov ecx, edx
and ecx, 3
push 0x20000
rep movsb byte es:[edi], byte [esi]
push 0
mov word [esp + ebx*2 + 0x13c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4863b4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x270f
mov edi, edi
mov ecx, dword [ebp + 0x1c]
cmp dword [esp + 0x120], ecx
jne 0x4863ad
push 0
call esi
dec ebx
jns 0x486380
mov ebx, dword [ebp + 0x1c]
cmp dword [esp + 0x120], ebx
jne 0x4863ad
nop
push 1
call esi
cmp dword [esp + 0x120], ebx
je 0x4863a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x51d598]
push edx
lea eax, [esp + 0x2c]
push 0x4f93cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
push str.__LastTID
call fcn.00448be0
push 0x51d5c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x374]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], edx
mov edi, edx
jmp 0x48628b
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
jne 0x486425
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x18], eax
cmp byte [esp + 0xf], 0x40
je 0x48643e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x48643e
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x48643e
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
push 0x2d4
mov dword [esp + 0x380], 1
call fcn.004cc845
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x37c], 2
je 0x48647d
mov edx, dword [esp + 0x18]
push 0x2720
push edx
mov ecx, eax
call fcn.00413589
mov ebx, eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 0x14]
lea edi, [ebx + 0x228]
push ecx
mov ecx, edi
mov byte [esp + 0x380], 1
mov dword [ebx + 0x224], esi
mov dword [ebx + 0x23c], eax
call fcn.00456630
mov ecx, dword [ebp + 0x24]
mov edi, dword [edi]
mov edx, dword [ebp + 0x1c]
mov al, byte [ebp + 0x20]
mov dword [ebx + 0x234], ecx
lea ecx, [esi + esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx + 0x90], edx
mov edx, ecx
mov dword [ebx + 0x22c], edi
shr ecx, 2
mov byte [ebx + 0x230], al
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
test esi, esi
mov word [ebx + eax*2 + 0x94], 0
je 0x48651e
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0xc0]
inc ecx
push 0x51d5ec
mov dword [esi + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call fcn.00416c03
add esp, 4
test esi, esi
je 0x486535
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, dword [ebp + 0x28]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x486548
push eax
lea ecx, [ebx + 0x6c]
call fcn.00456630
cmp byte [esp + 0xf], 0xc0
mov edx, dword [esp + 0x1c]
mov byte [ebx + 0x69], 0
mov dword [ebx + 0x88], edx
mov byte [ebx + 0x68], 0
jne 0x486591
test esi, esi
mov dword [ebx + 0x4c], esi
je 0x48658b
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0xc0]
inc ecx
push 0x51d5ec
mov dword [esi + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebx + 0x68], 1
jmp 0x486595
mov byte [ebx + 0x68], 0x10
test esi, esi
je 0x4865ab
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4865ab
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x88], eax
jmp 0x4865b2
mov dword [edi + 0x10], 0
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov eax, 0xfffffff3
and ecx, eax
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x18]
push edi
push ecx
and edx, eax
push 0
push ebx
mov dword [edi + 0x14], edx
call fcn.00446160
mov al, byte [esp + 0x1f]
add esp, 0x10
cmp al, 0x40
jne 0x4865f5
push 0
mov ecx, ebx
call fcn.004a8590
mov edx, dword [ebx + 0x240]
mov dword [esp + 0x10], edx
jmp 0x48661f
cmp al, 0xc0
jne 0x48660e
mov eax, dword [ebx + 0x18]
push 0
push 0
push 0x110
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48661f
mov ecx, ebx
call fcn.004a8720
mov ecx, dword [ebx + 0x240]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x486661
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xc0]
mov cl, byte [esi + 0x69]
mov eax, dword [esi + 0x18]
dec edx
cmp cl, 0x81
mov dword [esi + 0xc0], edx
je 0x486656
push 0
push 0
push 0x43d
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x374]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret