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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475868
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 0x40f0ef
je 0x40f061
cmp esi, 0x4e
ja 0x40ef5d
je 0x40ef25
mov eax, esi
sub eax, 2
je 0x40ef18
sub eax, 0x29
jne case.default.0x40f0fa
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.0x40f0fa
mov esi, dword [ebp + 0x10]
mov ecx, edi
call fcn.0040e160
test eax, eax
je 0x40f0a7
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.0x40f0fa
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebx + 0x124]
call fcn.0040dda0
test eax, eax
je case.default.0x40f0fa
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 0x40efd1
sub eax, 1
jne case.default.0x40f0fa
movzx eax, word [ebp + 0xc]
sub eax, 0xf020
je 0x40efae
sub eax, 0x40
jne case.default.0x40f0fa
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.00403960
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.0x40f0fa
movzx eax, byte [eax + 0x40f2c4]
jmp dword [eax*4 + 0x40f2b0]
mov ecx, dword [0x4ac788]
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.0x40f0fa
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x40f0fa
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.00403960
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 0x40f070
sub eax, 2
jne case.default.0x40f0fa
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 0x40f0cf
mov ecx, dword [0x4a9c00]
push ecx
call esi
test eax, eax
je 0x40f0cf
push 0
mov edx, dword [0x4a9c00]
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 0x40f0a7
mov ecx, dword [0x4a9c00]
push ecx
call esi
test eax, eax
je 0x40f0a7
push 5
jmp 0x40f09a
lea eax, [esi - 0x50a]
cmp eax, 3
ja case.default.0x40f0fa
jmp dword [eax*4 + 0x40f2e4]
cmp dword [ebp + 0xc], 0
je 0x40f12a
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je case.default.0x40f0fa
mov ecx, dword [ebx + 4]
push ecx
mov edi, 0x4a9bfc
call fcn.004106f0
jmp case.default.0x40f0fa
mov edx, dword [0x4a9c00]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f149
mov eax, dword [0x4a9c00]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebx + 0x148], 1
jmp case.default.0x40f0fa
cmp dword [ebp + 0xc], 0
jne 0x40f1a9
cmp dword [ebp + 0x10], 0xffffffff
je 0x40f251
mov edx, dword [ebx + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ada7c]
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.00410240
mov edi, 0x48384c
mov ecx, eax
call fcn.00410330
jmp case.default.0x40f0fa
mov edi, dword [ebp + 0x10]
test edi, edi
jl 0x40f243
push 0
call fcn.004476fc
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 0x4af488
adc eax, edx
push 0x4ae690
mov dword [esp + 0x24], eax
call fcn.00429670
lea ecx, [esp + 0x1c]
call fcn.0046bf10
push 1
mov dword [esp + 0x34], 0
mov ecx, dword [0x4a93d0]
push 0x4ae690
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00445480
mov ecx, eax
call fcn.004451a0
test al, al
jne 0x40f232
lea ecx, [esp + 0x1c]
call fcn.0046cff0
lea ecx, [esp + 0x1c]
call fcn.0046c290
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.0046beb0
mov eax, dword [0x4ac788]
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.0x40f0fa
cmp dword [ebp + 0xc], 0
je 0x40f280
mov edx, dword [ebx + 0x160]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x40f0fa
mov eax, dword [ebx + 0x160]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x40f0fa
mov ecx, dword [ebx + 4]
mov edx, dword [0x4ac76c]
push ecx
push edx
lea edi, [ebx + 0x170]
call fcn.0040e420
jmp case.default.0x40f0fa