Function at 0x1005ce30
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa8c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test byte [0x1014b4cc], 1
je 0x1005ce87
push edi
push str.Close_Menu__ptr_p
call fcn.1003bea0
add esp, 8
cmp dword [edi + 0x88], 0
je 0x1005cf15
push 0
push 0xfffffffffffffffc
push dword [edi + 0xc]
push 7
call dword [sym.imp.USER32.dll_NotifyWinEvent]
mov ecx, dword [edi + 0x84]
push 0
push 4
push 0x10103d20
mov eax, dword [ecx]
push 0
push 0x10059630
push ecx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x1005ceea
mov dword [ebp - 0x68], ecx
mov dword [edi + 0x84], 0
mov dword [ebp - 4], 1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x1005cf15
mov dword [ebp - 0x6c], ecx
mov dword [edi + 0x88], 0
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x1005cf2e
cmp dword [edi + 0xc8], 0
je 0x1005cf2e
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov ecx, dword [edi + 0xc8]
test ecx, ecx
je 0x1005cf59
mov dword [ebp - 0x70], ecx
mov dword [edi + 0xc8], 0
mov dword [ebp - 4], 5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x1005cf84
mov dword [ebp - 0x74], ecx
mov dword [edi + 0xc0], 0
mov dword [ebp - 4], 7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x8c]
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x1005cfbc
mov dword [ebp - 0x78], ecx
mov dword [edi + 0x8c], 0
mov dword [ebp - 4], 9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
push dword [edi + 0xc]
call dword [sym.imp.ole32.dll_RevokeDragDrop]
cmp dword [edi + 0x17c], 0
lea eax, [edi + 0x60]
jle 0x1005cfeb
cmp dword [eax], 0
je 0x1005cfeb
mov esi, dword [edi + 0x180]
mov ecx, 0x1014c0b4
push eax
call fcn.100266c0
mov dword [eax], esi
jmp 0x1005cff1
push eax
call fcn.10026510
cmp dword [0x1014b5dc], edi
jne 0x1005d00d
mov dword [0x1014b5dc], 0
mov dword [0x1014b5e0], 0xffffffff
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1014b5d4], edi
jne 0x1005d05d
lea eax, [ebp - 0x44]
mov dword [0x1014b5d4], 0
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x30
push 0x411
push dword [0x1014c168]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x40], 0x1a0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x38], 1
movq qword [ebp - 0x1c], xmm0
call esi
test dword [edi + 0x3c], 0x400000
je 0x1005d089
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x31], 0
jne 0x1005d089
cmp byte [eax + 0x194], 0
jne 0x1005d089
push 0x1010ca30
push dword [eax + 0x1a4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [sym.imp.UxTheme.dll_CloseThemeData]
mov byte [edi + 0x31], 1
mov eax, dword [0x1014c064]
cmp edi, dword [eax]
jne 0x1005d3bc
mov eax, dword [0x1014b5f8]
test eax, eax
je 0x1005d0b2
push eax
call ecx
mov ecx, dword [sym.imp.UxTheme.dll_CloseThemeData]
mov eax, dword [0x1014b5f4]
mov dword [0x1014b5f8], 0
test eax, eax
je 0x1005d0c8
push eax
call ecx
mov eax, dword [0x1014c168]
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x1014b5f4], 0
test eax, eax
je 0x1005d0ea
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x1013fb2c]
mov dword [0x1014c168], 0
mov dword [0x1014c16c], 0
test eax, eax
je 0x1005d10a
push eax
call ecx
mov dword [0x1013fb2c], 0
mov dword [0x1014b5dc], 0
cmp byte [edi + 0x30], 0
mov dword [0x1014b5e0], 0xffffffff
jne 0x1005d157
mov eax, dword [0x10158afc]
test eax, eax
je 0x1005d157
push 0
push 0
push 0x41c
push eax
call esi
push 0x10158b00
push 0
push 0x439
push dword [0x10158afc]
call esi
call dword [sym.imp.UxTheme.dll_BufferedPaintUnInit]
cmp byte [edi + 0x30], 0
jne 0x1005d194
test byte [0x1014b504], 1
je 0x1005d194
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x1005d18c
mov ecx, dword [0x1014b514]
cmp eax, ecx
je 0x1005d194
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1005d194
push 0
call dword [sym.imp.USER32.dll_SetActiveWindow]
cmp dword [0x1014b5bc], 0
je 0x1005d1ae
push 2
push 1
push 0
push 0x1001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
call fcn.1007bcd0
mov eax, dword [edi + 0x1b8]
test eax, eax
je 0x1005d1db
mov eax, dword [eax + 8]
test eax, eax
je 0x1005d1db
cmp dword [0x1014b4d4], 1
jne 0x1005d1db
push 1
push eax
call dword [sym.imp.USER32.dll_GetScrollPos]
mov dword [0x1014b540], eax
test byte [edi + 0x3c], 0x20
mov byte [0x1014b4d0], 0
je 0x1005d28a
mov eax, dword [0x1014b4b0]
test eax, eax
je 0x1005d28a
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005d28a
push 5
push dword [0x1014b4a4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1014b4a8]
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
push dword [0x1014b4b0]
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1005d28a
lea eax, [ebp - 0x5c]
push eax
push dword [0x1014b4b0]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0x58]
movzx eax, word [ebp - 0x5c]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [0x1014b4b0]
call dword [sym.imp.USER32.dll_PostMessageW]
test byte [edi + 0x3c], 0x20
mov dword [0x1014b620], 0
jne 0x1005d2d3
mov eax, dword [0x1014b618]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
mov dword [0x1013c9f4], 0xffffffff
push eax
call fcn.100120c0
mov ecx, dword [0x1014be40]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], ecx
cmp eax, ecx
je 0x1005d2d3
push 0
lea ecx, [eax + 0x14]
call fcn.10011410
test dword [0x1014b4cc], 0x200
mov dword [0x1014b614], 0
mov dword [0x1014b514], 0
mov dword [0x1014b618], 0xffffffff
je 0x1005d309
push 0x1014be70
call fcn.10032fb0
jmp 0x1005d376
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x1014c020]
test edx, edx
je 0x1005d325
mov ecx, eax
sub ecx, edx
cmp ecx, 0x493e0
jl 0x1005d376
mov dword [0x1014c020], eax
mov eax, dword [0x1014beac]
test eax, eax
je 0x1005d359
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1005d376
push dword [0x1014beac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1014beac], 0
push 0
push 0
push 0x1014be70
push fcn.10032fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1014beac], eax
mov eax, dword [0x1014b53c]
test eax, eax
je 0x1005d386
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x10158ce8]
mov dword [0x1014b53c], 0
test eax, eax
je 0x1005d3a2
push eax
call fcn.100de929
add esp, 4
mov ecx, dword [sym.imp.UxTheme.dll_CloseThemeData]
mov dword [0x10158ce8], 0
mov dword [0x1014b4cc], 0
test dword [edi + 0x3c], 0x400000
je 0x1005d3cf
mov dword [0x1014b61c], 0
mov eax, dword [edi + 0x1e0]
test eax, eax
je 0x1005d3e6
push eax
call ecx
mov dword [edi + 0x1e0], 0
mov eax, dword [0x1014e90c]
test eax, eax
je 0x1005d400
mov edx, dword [edi + 0x90]
test edx, edx
je 0x1005d400
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10