Function at 0x45d52c
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 0x45d55d
cmp edi, esi
je 0x45d55d
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x45d560
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], esi
jne 0x45d568
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 0x45d57e
mov ebx, eax
cmp byte [ebp - 1], 0x80
jne 0x45d691
mov esi, 0x4a7630
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.0047b530
and word [ebp + ebx*2 - 0x258], 0
add esp, 0xc
push 0x4a7230
push 0x10000
lea eax, [ebp - 0x2f4]
push eax
push 0x45cf5d
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x28], eax
je 0x45d66d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x20], 0x270f
cmp dword [ebp - 0x25c], edi
jne 0x45d664
push 0
call ebx
dec dword [ebp + 0x20]
jns 0x45d645
jmp 0x45d65c
push 1
call ebx
cmp dword [ebp - 0x25c], edi
je 0x45d658
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.__LastTID
push dword [0x4a7230]
push dword [ebp + 8]
call fcn.00435eb7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x45d876
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
jne 0x45d6a7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0x40
je 0x45d6b7
cmp edi, esi
je 0x45d6b7
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
push 0x2dc
call fcn.0047b518
cmp eax, esi
pop ecx
je 0x45d6d7
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.0043de31
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.0047b530
and word [esi + ebx*2 + 0x9c], 0
add esp, 0xc
test edi, edi
je 0x45d769
mov ebx, 0x4a7658
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.0047080c
test edi, edi
pop ecx
je 0x45d77d
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 0x45d790
push eax
lea ecx, [esi + 0x74]
call fcn.0043de31
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 0x45d7d0
test edi, edi
mov dword [esi + 0x4c], edi
je 0x45d7ca
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xd0]
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x70], 1
jmp 0x45d7d4
mov byte [esi + 0x70], 0x10
xor eax, eax
cmp edi, eax
je 0x45d7ea
cmp dword [ebx + 0x10], eax
je 0x45d7ea
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x90], ecx
jmp 0x45d7ed
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.00430c5b
add esp, 0x10
cmp byte [ebp - 1], 0x40
jne 0x45d814
push 0
mov ecx, esi
call fcn.00473898
jmp 0x45d835
cmp byte [ebp - 1], 0xc0
jne 0x45d82e
push 0
push 0
push 0x110
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45d83e
mov ecx, esi
call fcn.00473a45
mov eax, dword [esi + 0x248]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x45d873
mov esi, 0x4a7658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0xd0]
cmp byte [edi + 0x71], 0x81
je 0x45d86c
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