Function at 0x45c136
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
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 0x45c167
cmp edi, esi
je 0x45c167
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x45c16a
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
jne 0x45c172
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 0x45c188
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x45c29b
mov esi, 0x4a6630
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 0x2f4], 0
xor eax, eax
mov ecx, 0xb8
lea edi, [ebp - 0x2f0]
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.0047a010
and word [ebp + ebx*2 - 0x258], 0
add esp, 0xc
push 0x4a622c
push 0x10000
lea eax, [ebp - 0x2f4]
push eax
push 0x45bb69
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x45c277
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x25c], edi
jne 0x45c26e
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x45c24f
jmp 0x45c266
push 1
call ebx
cmp dword [ebp - 0x25c], edi
je 0x45c262
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__LastTID
push dword [0x4a622c]
push dword [ebp + 8]
call fcn.00434e74
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x45c480
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jne 0x45c2b1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x45c2c1
cmp edi, esi
je 0x45c2c1
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
push 0x2dc
call fcn.00479ff8
cmp eax, esi
pop ecx
je 0x45c2e1
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 + 0x230]
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x244], eax
call fcn.0043cd64
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x98], eax
mov al, byte [ebp + 0x20]
mov byte [esi + 0x238], al
mov eax, dword [esi + 0x230]
mov dword [esi + 0x234], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x23c], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x80], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x84], eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
lea eax, [esi + 0x9c]
push eax
call fcn.0047a010
and word [esi + ebx*2 + 0x9c], 0
add esp, 0xc
test edi, edi
je 0x45c373
mov ebx, 0x4a6658
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.00475a4c
test edi, edi
pop ecx
je 0x45c387
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 0x45c39a
push eax
lea ecx, [esi + 0x74]
call fcn.0043cd64
cmp byte [ebp - 1], 0xc0
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x71], 0
mov dword [esi + 0x90], eax
mov byte [esi + 0x70], 0
jne 0x45c3da
test edi, edi
mov dword [esi + 0x4c], edi
je 0x45c3d4
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xd0]
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x70], 1
jmp 0x45c3de
mov byte [esi + 0x70], 0x10
xor eax, eax
cmp edi, eax
je 0x45c3f4
cmp dword [ebx + 0x10], eax
je 0x45c3f4
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x90], ecx
jmp 0x45c3f7
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.0042fdc5
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x45c41e
push 0
mov ecx, esi
call fcn.00472384
jmp 0x45c43f
cmp byte [ebp - 1], 0xc0
jne 0x45c438
push 0
push 0
push 0x110
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45c448
mov ecx, esi
call fcn.00472531
mov eax, dword [esi + 0x248]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x45c47d
mov esi, 0x4a6658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xd0]
cmp byte [edi + 0x71], 0x81
je 0x45c476
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