Function at 0x4614d1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov al, byte [ebp + 0x20]
and byte [ebp + 0x20], 0xf
push ebx
push esi
mov esi, dword [sym.imp.USER32.DLL_GetDesktopWindow]
push edi
mov edi, dword [ebp + 0x28]
and al, 0xc0
xor ebx, ebx
cmp dword [edi + 0x10], ebx
mov byte [ebp - 1], al
je 0x461505
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x461505
mov eax, dword [eax + 0x18]
jmp 0x461507
call esi
cmp eax, ebx
mov dword [ebp + 0x28], eax
jne 0x461511
mov dword [edi + 0x10], ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
mov eax, 0xb4
cmp ebx, eax
jle 0x461527
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x46163a
mov esi, 0x4ad69c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 0x2f4], 0
xor eax, eax
mov ecx, 0xb9
lea edi, [ebp - 0x2f0]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xac], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 0xb8], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x26c], eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0x258], edi
call fcn.004102e0
and word [ebp + ebx*2 - 0x254], 0
add esp, 0xc
push 0x4ad264
push 0x10000
lea eax, [ebp - 0x2f4]
push eax
push 0x460f02
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x461616
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x258], edi
jne 0x46160d
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x4615ee
jmp 0x461605
push 1
call ebx
cmp dword [ebp - 0x258], edi
je 0x461601
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x4954d8
push dword [0x4ad264]
push dword [ebp + 8]
call fcn.004380a5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor eax, eax
jmp 0x4617f5
mov eax, dword [ebp + 0x28]
and dword [ebp - 0xc], 0
test eax, eax
mov dword [ebp - 8], eax
jne 0x46164d
call esi
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x461660
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x461660
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
push 0x2e0
call fcn.00480078
test eax, eax
pop ecx
je 0x461682
push 0x2720
push dword [ebp - 8]
mov ecx, eax
call fcn.00401053
mov esi, eax
jmp 0x461684
xor esi, esi
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
lea ecx, [esi + 0x234]
mov dword [esi + 0x230], ebx
mov dword [esi + 0x248], eax
call fcn.0044042b
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x9c], eax
mov al, byte [ebp + 0x20]
mov byte [esi + 0x23c], al
mov eax, dword [esi + 0x234]
mov dword [esi + 0x238], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x240], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x88], eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [esi + 0xa0]
push eax
call fcn.004102e0
and word [esi + ebx*2 + 0xa0], 0
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00430e0c
push esi
mov dword [ebp + 0x20], eax
call fcn.0042c298
add esp, 0x14
test ebx, ebx
je 0x461718
push dword [ebx + 0x18]
call dword [sym.imp.USER32.DLL_SetFocus]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x461728
push eax
lea ecx, [esi + 0x78]
call fcn.0044042b
cmp byte [ebp - 1], 0xc0
mov eax, dword [ebp + 0x28]
mov byte [esi + 0x75], 0
mov dword [esi + 0x94], eax
mov byte [esi + 0x74], 0
jne 0x46176e
cmp dword [ebp + 0x20], 0
je 0x461765
test ebx, ebx
je 0x461765
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
inc dword [ebx + 0xd4]
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [esi + 0x74], 1
mov dword [esi + 0x4c], ebx
jmp 0x461772
mov byte [esi + 0x74], 0x10
xor eax, eax
cmp ebx, eax
je 0x461788
cmp dword [edi + 0x10], eax
je 0x461788
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x94], ecx
jmp 0x46178b
mov dword [edi + 0x10], eax
and dword [edi + 0x14], 0xfffffff3
and dword [edi + 0x10], 0xfffffff3
push edi
push dword [ebp - 8]
push eax
push esi
call fcn.00432d82
mov edi, dword [sym.imp.USER32.DLL_SendMessageW]
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x4617b8
push 0
mov ecx, esi
call fcn.00478358
jmp 0x4617d5
cmp byte [ebp - 1], 0xc0
jne 0x4617ce
push 0
push 0
push 0x110
push dword [esi + 0x18]
call edi
jmp 0x4617de
mov ecx, esi
call fcn.00478586
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x20], 0
je 0x4617f2
push 0
push 1
push 0x451
push dword [ebp + 0x20]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret