Function at 0x4511f0
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 0x451221
cmp edi, esi
je 0x451221
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x451224
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
jne 0x45122c
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 0x451242
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x451343
mov esi, 0x4975bc
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
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.0046c720
and word [ebp + ebx*2 - 0x258], 0
add esp, 0xc
push 0x497188
push 0x10000
lea eax, [ebp - 0x2ec]
push eax
push 0x450c26
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x45131f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x25c], edi
jne 0x451316
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x4512f7
jmp 0x45130e
push 1
call ebx
cmp dword [ebp - 0x25c], edi
je 0x45130a
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__LastTID
push dword [0x497188]
push dword [ebp + 8]
call fcn.0042e3ae
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x451516
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jne 0x451359
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x451369
cmp edi, esi
je 0x451369
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
push 0x2d4
call fcn.0046c708
cmp eax, esi
pop ecx
je 0x451389
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.00436246
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
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [esi + 0x94]
push eax
call fcn.0046c720
and word [esi + ebx*2 + 0x94], 0
add esp, 0xc
test edi, edi
je 0x451409
mov ebx, 0x4975e4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xc0]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0042a08d
test edi, edi
pop ecx
je 0x45141d
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 0x451430
push eax
lea ecx, [esi + 0x6c]
call fcn.00436246
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 0x451470
test edi, edi
mov dword [esi + 0x4c], edi
je 0x45146a
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xc0]
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x68], 1
jmp 0x451474
mov byte [esi + 0x68], 0x10
xor eax, eax
cmp edi, eax
je 0x45148a
cmp dword [ebx + 0x10], eax
je 0x45148a
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x88], ecx
jmp 0x45148d
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.00428f43
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x4514b4
push 0
mov ecx, esi
call fcn.00435b82
jmp 0x4514d5
cmp byte [ebp - 1], 0xc0
jne 0x4514ce
push 0
push 0
push 0x110
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4514de
mov ecx, esi
call fcn.00435cb9
mov eax, dword [esi + 0x240]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x451513
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xc0]
cmp byte [edi + 0x69], 0x81
je 0x45150c
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