Function at 0x4563b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov al, byte [ebp + 0x20]
and byte [ebp + 0x20], 0xf
and al, 0xc0
push ebx
push esi
mov byte [ebp - 1], al
mov eax, dword [ebp + 0x28]
xor esi, esi
cmp dword [eax + 0x10], esi
push edi
mov edi, dword [ebp + 0xc]
je 0x4563e7
cmp edi, esi
je 0x4563e7
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x4563ea
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
jne 0x4563f2
mov dword [eax + 0x10], esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, 0xb4
cmp ebx, eax
jle 0x456408
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x45651b
mov esi, 0x49b5dc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 0x2ec], 0
xor eax, eax
mov ecx, 0xb6
lea edi, [ebp - 0x2e8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xb0], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 0xbc], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x270], eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0x25c], edi
call fcn.00470580
and word [ebp + ebx*2 - 0x258], 0
add esp, 0xc
push 0x49b1a8
push 0x10000
lea eax, [ebp - 0x2ec]
push eax
push 0x455dec
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x4564f7
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x25c], edi
jne 0x4564ee
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x4564cf
jmp 0x4564e6
push 1
call ebx
cmp dword [ebp - 0x25c], edi
je 0x4564e2
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__LastTID
push dword [0x49b1a8]
push dword [ebp + 8]
call fcn.004300d6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4566fa
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jne 0x456531
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x456541
cmp edi, esi
je 0x456541
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
push 0x2d4
call fcn.00470568
cmp eax, esi
pop ecx
je 0x456561
push 0x2720
push dword [ebp - 8]
mov ecx, eax
call fcn.00401053
mov esi, eax
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
lea ecx, [esi + 0x228]
mov dword [esi + 0x224], ebx
mov dword [esi + 0x23c], eax
call fcn.0043a522
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x90], eax
mov al, byte [ebp + 0x20]
mov byte [esi + 0x230], al
mov eax, dword [esi + 0x228]
mov dword [esi + 0x22c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x234], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x7c], eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [esi + 0x94]
push eax
call fcn.00470580
and word [esi + ebx*2 + 0x94], 0
add esp, 0xc
test edi, edi
je 0x4565ed
mov ebx, 0x49b604
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xc8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0047128a
test edi, edi
pop ecx
je 0x456601
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x456614
push eax
lea ecx, [esi + 0x6c]
call fcn.0043a522
cmp byte [ebp - 1], 0xc0
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x69], 0
mov dword [esi + 0x88], eax
mov byte [esi + 0x68], 0
jne 0x456654
test edi, edi
mov dword [esi + 0x4c], edi
je 0x45664e
push 0x49b604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xc8]
push 0x49b604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x68], 1
jmp 0x456658
mov byte [esi + 0x68], 0x10
xor eax, eax
cmp edi, eax
je 0x45666e
cmp dword [ebx + 0x10], eax
je 0x45666e
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x88], ecx
jmp 0x456671
mov dword [ebx + 0x10], eax
and dword [ebx + 0x14], 0xfffffff3
and dword [ebx + 0x10], 0xfffffff3
push ebx
push dword [ebp - 8]
push eax
push esi
call fcn.0042a9b8
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x456698
push 0
mov ecx, esi
call fcn.00439865
jmp 0x4566b9
cmp byte [ebp - 1], 0xc0
jne 0x4566b2
push 0
push 0
push 0x110
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4566c2
mov ecx, esi
call fcn.0043999c
mov eax, dword [esi + 0x240]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4566f7
mov esi, 0x49b604
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xc8]
cmp byte [edi + 0x69], 0x81
je 0x4566f0
push 0
push 0
push 0x43d
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret