Function at 0x484ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e7574
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 0x484e72
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x484e72
mov edi, dword [eax + 0x18]
cmp edi, edx
mov dword [esp + 0x1c], edi
jne 0x484cfe
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 0x484d22
mov dword [esp + 0x14], 0xb4
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0xf], 0x80
jne 0x484e7d
push 0x5194c4
mov dword [esp + 0x14], 0x5194c4
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 0x519448
push 0x10000
lea eax, [esp + 0x98]
push eax
push 0x484390
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 0x484e24
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 0x484e1d
push 0
call esi
dec ebx
jns 0x484df0
mov ebx, dword [ebp + 0x1c]
cmp dword [esp + 0x120], ebx
jne 0x484e1d
nop
push 1
call esi
cmp dword [esp + 0x120], ebx
je 0x484e10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x519448]
push edx
lea eax, [esp + 0x2c]
push 0x4f4acc
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.00444550
push 0x5194c4
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 0x484cfb
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
jne 0x484e95
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x18], eax
cmp byte [esp + 0xf], 0x40
je 0x484eae
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x484eae
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x484eae
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
push 0x2d4
mov dword [esp + 0x380], 1
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x37c], 2
je 0x484eed
mov edx, dword [esp + 0x18]
push 0x2720
push edx
mov ecx, eax
call fcn.00412839
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.004574e0
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 0x484f8e
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0xc0]
inc ecx
push 0x5194ec
mov dword [esi + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call fcn.004157bc
add esp, 4
test esi, esi
je 0x484fa5
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 0x484fb8
push eax
lea ecx, [ebx + 0x6c]
call fcn.004574e0
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 0x485001
test esi, esi
mov dword [ebx + 0x4c], esi
je 0x484ffb
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0xc0]
inc ecx
push 0x5194ec
mov dword [esi + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebx + 0x68], 1
jmp 0x485005
mov byte [ebx + 0x68], 0x10
test esi, esi
je 0x48501b
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48501b
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x88], eax
jmp 0x485022
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.00441be0
mov al, byte [esp + 0x1f]
add esp, 0x10
cmp al, 0x40
jne 0x485065
push 0
mov ecx, ebx
call fcn.00456320
mov edx, dword [ebx + 0x240]
mov dword [esp + 0x10], edx
jmp 0x48508f
cmp al, 0xc0
jne 0x48507e
mov eax, dword [ebx + 0x18]
push 0
push 0
push 0x110
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48508f
mov ecx, ebx
call fcn.004564b0
mov ecx, dword [ebx + 0x240]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x4850d1
push 0x5194ec
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 0x4850c6
push 0
push 0
push 0x43d
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x5194ec
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