Function at 0x4515e2
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 0x451613
cmp edi, esi
je 0x451613
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x451616
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
jne 0x45161e
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 0x451634
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x451735
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.0046cbf0
and word [ebp + ebx*2 - 0x258], 0
add esp, 0xc
push 0x497188
push 0x10000
lea eax, [ebp - 0x2ec]
push eax
push 0x451018
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x451711
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x25c], edi
jne 0x451708
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x4516e9
jmp 0x451700
push 1
call ebx
cmp dword [ebp - 0x25c], edi
je 0x4516fc
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__LastTID
push dword [0x497188]
push dword [ebp + 8]
call fcn.0042e722
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x451908
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jne 0x45174b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x45175b
cmp edi, esi
je 0x45175b
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
push 0x2d4
call fcn.0046cbd8
cmp eax, esi
pop ecx
je 0x45177b
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.00436622
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.0046cbf0
and word [esi + ebx*2 + 0x94], 0
add esp, 0xc
test edi, edi
je 0x4517fb
mov ebx, 0x4975e4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xd0]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.0042a3da
test edi, edi
pop ecx
je 0x45180f
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 0x451822
push eax
lea ecx, [esi + 0x6c]
call fcn.00436622
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 0x451862
test edi, edi
mov dword [esi + 0x4c], edi
je 0x45185c
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xd0]
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x68], 1
jmp 0x451866
mov byte [esi + 0x68], 0x10
xor eax, eax
cmp edi, eax
je 0x45187c
cmp dword [ebx + 0x10], eax
je 0x45187c
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x88], ecx
jmp 0x45187f
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.00429292
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x4518a6
push 0
mov ecx, esi
call fcn.00435f5e
jmp 0x4518c7
cmp byte [ebp - 1], 0xc0
jne 0x4518c0
push 0
push 0
push 0x110
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4518d0
mov ecx, esi
call fcn.00436095
mov eax, dword [esi + 0x240]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x451905
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xd0]
cmp byte [edi + 0x69], 0x81
je 0x4518fe
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