Function at 0x40eec0
Capabilities:
Hide graphical window
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475168
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp esi, 0x505
mov ebx, ecx
ja 0x40f13f
je 0x40f0b1
cmp esi, 0x4e
ja 0x40efad
je 0x40ef75
mov eax, esi
sub eax, 2
je 0x40ef68
sub eax, 0x29
jne case.default.0x40f14a
mov eax, dword [ebx + 0x150]
lea edi, [ebx + 0x14c]
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, dword [ebp + 0xc]
jne case.default.0x40f14a
mov esi, dword [ebp + 0x10]
mov ecx, edi
call fcn.0040e1b0
test eax, eax
je 0x40f0f7
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.default.0x40f14a
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebx + 0x124]
call fcn.0040ddf0
test eax, eax
je case.default.0x40f14a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
sub eax, 0x111
je 0x40f021
sub eax, 1
jne case.default.0x40f14a
movzx eax, word [ebp + 0xc]
sub eax, 0xf020
je 0x40effe
sub eax, 0x40
jne case.default.0x40f14a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
push eax
push ecx
mov ecx, dword [ebx + 0x2e0]
call fcn.004039e0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
movzx eax, word [ebp + 0xc]
add eax, 0xffffff96
cmp eax, 0x1c
ja case.default.0x40f14a
movzx eax, byte [eax + 0x40f314]
jmp dword [eax*4 + 0x40f300]
mov ecx, dword [0x4ac768]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx + 4]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x40f14a
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x40f14a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebx + 0x2e0]
push edx
mov edx, dword [ebx + 4]
call fcn.004039e0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
sub eax, 0x201
je 0x40f0c0
sub eax, 2
jne case.default.0x40f14a
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push eax
call edi
test eax, 0x10000000
mov esi, dword [sym.imp.USER32.dll_IsWindow]
je 0x40f11f
mov ecx, dword [0x4a9bec]
push ecx
call esi
test eax, eax
je 0x40f11f
push 0
mov edx, dword [0x4a9bec]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.0040be20
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
call edi
test eax, 0x10000000
jne 0x40f0f7
mov ecx, dword [0x4a9bec]
push ecx
call esi
test eax, eax
je 0x40f0f7
push 5
jmp 0x40f0ea
lea eax, [esi - 0x50a]
cmp eax, 3
ja case.default.0x40f14a
jmp dword [eax*4 + 0x40f334]
cmp dword [ebp + 0xc], 0
je 0x40f17a
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je case.default.0x40f14a
mov ecx, dword [ebx + 4]
push ecx
mov edi, 0x4a9be8
call fcn.00410750
jmp case.default.0x40f14a
mov edx, dword [0x4a9bec]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f199
mov eax, dword [0x4a9bec]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebx + 0x148], 1
jmp case.default.0x40f14a
cmp dword [ebp + 0xc], 0
jne 0x40f1f9
cmp dword [ebp + 0x10], 0xffffffff
je 0x40f2a1
mov edx, dword [ebx + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ada5c]
push 0x43
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x482200
push 0x48384c
call fcn.00410290
mov edi, 0x48384c
mov ecx, eax
call fcn.00410380
jmp case.default.0x40f14a
mov edi, dword [ebp + 0x10]
test edi, edi
jl 0x40f293
push 0
call fcn.0044725c
mov ecx, eax
mov eax, edx
mov dword [esp + 0x18], eax
lea eax, [edi + 1]
imul eax, eax, 0x15180
cdq
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x14]
push ecx
push 0x4af454
adc eax, edx
push 0x4ae670
mov dword [esp + 0x24], eax
call fcn.00429760
lea ecx, [esp + 0x1c]
call fcn.0046ba70
push 1
mov dword [esp + 0x34], 0
mov ecx, dword [0x4a93bc]
push 0x4ae670
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00444fe0
mov ecx, eax
call fcn.00444d00
test al, al
jne 0x40f282
lea ecx, [esp + 0x1c]
call fcn.0046cb50
lea ecx, [esp + 0x1c]
call fcn.0046bdf0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.0046ba10
mov eax, dword [0x4ac768]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x40f14a
cmp dword [ebp + 0xc], 0
je 0x40f2d0
mov edx, dword [ebx + 0x160]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x40f14a
mov eax, dword [ebx + 0x160]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x40f14a
mov ecx, dword [ebx + 4]
mov edx, dword [0x4ac74c]
push ecx
push edx
lea edi, [ebx + 0x170]
call fcn.0040e470
jmp case.default.0x40f14a