Function at 0x40ad40
Capabilities:
Hide graphical window

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 0x4cd6a5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x4fe0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xcc], esi
cmp dword [ebx + 0x1c], 0
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0xc8], ecx
jne 0x40af2f
cmp edi, 0xf
jne 0x40adff
lea eax, [ebp - 0x98]
mov dword [ebp - 0xc4], 1
push eax
push dword [esi + 4]
lea edi, [esi - 0x34]
call dword [sym.imp.USER32.dll_BeginPaint]
sub esp, 0x10
mov esi, eax
mov ecx, esp
lea eax, [ebp - 0x90]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
push esi
mov ecx, edi
call fcn.0040c9e0
lea eax, [ebp - 0x98]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 0x85
je 0x40bb51
cmp edi, 0x14
je 0x40bb51
cmp edi, 5
jne 0x40aed7
cmp dword [esi + 0x2c], 0
lea edi, [esi - 0x34]
mov dword [ebp - 0xc4], 1
je 0x40aea5
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40aea5
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40aea5
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push dword [edi + 0x38]
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x60]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40aea5
mov ecx, dword [edi + 0x60]
movups xmm0, xmmword [ebp - 0x34]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov ecx, dword [edi + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x54]
push 1
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [edi + 0xc4], 0
je 0x40aec6
cmp dword [ebx + 0x10], 1
je 0x40aec6
mov esi, dword [ebx + 0x14]
mov ecx, edi
mov eax, dword [edi]
movzx edx, si
shr esi, 0x10
push esi
push edx
call dword [eax + 0x68]
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 0x4e
je 0x40bb51
cmp edi, 0x215
jne 0x40af51
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040c4a0
cmp dword [ebp - 0xc4], 0
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
mov eax, ecx
mov dword [eax], 1
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.0049cdfb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
cmp edi, 1
jne 0x40b013
add esi, 0xffffffcc
mov dword [ebp - 0xc4], 0
cmp dword [esi + 0x60], 0
jne 0x40afda
push 0x11c
call fcn.0049ca7e
add esp, 4
mov dword [ebp - 0xcc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404f70
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x60], edi
je 0x40afb6
test edi, edi
je 0x40afa6
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, dword [esi + 0x60]
mov dword [esi + 0x60], edi
test eax, eax
je 0x40afb6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x40afda
mov eax, dword [ecx]
push esi
call dword [eax + 0x94]
mov ecx, dword [esi + 0x60]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd4]
mov ecx, esi
call fcn.0040c730
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x40aec6
mov eax, dword [ecx]
push esi
call dword [eax + 0x94]
mov ecx, dword [esi + 0x60]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd4]
mov ecx, esi
call fcn.0040c730
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 2
jne 0x40b03d
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d610
jmp 0x40af08
cmp edi, 0x5f5
jne 0x40b068
lea ecx, [esi - 0x34]
mov dword [ebp - 0xc4], 1
call fcn.0040c730
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 0x200
jne 0x40b095
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040cb90
jmp 0x40b29e
cmp edi, 0xa0
jne 0x40b0e4
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040cb90
mov ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0xc4], 0
mov dword [ecx], eax
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
lea eax, [edi - 0x2b]
jmp 0x40ba5a
cmp edi, 0x2a3
jne 0x40b111
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d3a0
jmp 0x40af08
cmp edi, 0x2a2
jne 0x40b13e
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d3a0
jmp 0x40af08
cmp edi, 0x20a
jne 0x40b16b
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d3f0
jmp 0x40b29e
cmp edi, 0x201
jne 0x40b198
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040ce00
jmp 0x40b29e
cmp edi, 0x204
jne 0x40b1c5
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040de90
jmp 0x40b29e
cmp edi, 0x205
jne 0x40b1f2
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040e100
jmp 0x40b29e
cmp edi, 0xa4
jne 0x40b21f
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040e390
jmp 0x40b0bd
cmp edi, 0xa5
jne 0x40b24c
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040e5d0
jmp 0x40b0bd
cmp edi, 0x203
jne 0x40b276
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040dc30
jmp 0x40b29e
cmp edi, 0x202
jne 0x40b2c8
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d070
cmp dword [ebp - 0xc4], 0
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
lea eax, [edi - 0x133]
jmp 0x40bae0
cmp edi, 0xa2
jne 0x40b2f5
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d070
jmp 0x40b0bd
cmp edi, 0x20
jne 0x40b46f
cmp dword [esi + 0x2c], 0
mov dword [ebp - 0xc4], 0
je 0x40b44b
mov edi, dword [esi + 0x30]
test edi, edi
je 0x40b386
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xf8]
call eax
test eax, eax
je 0x40b445
mov esi, dword [edi + 0xb8]
mov edx, dword [ebx + 0x14]
cmp esi, dword [edi + 0xbc]
je 0x40b369
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40b35e
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
mov edx, dword [ebx + 0x14]
push edx
push dword [ebx + 0x10]
push 0x20
push edi
call dword [eax]
mov edx, dword [ebx + 0x14]
add esi, 4
cmp esi, dword [edi + 0xbc]
jne 0x40b340
mov eax, dword [edi]
lea ecx, [ebp - 0xc4]
push ecx
push edx
push dword [ebx + 0x10]
mov ecx, edi
push 0x20
push edi
call dword [eax + 0xc0]
jmp 0x40b445
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [ebp - 0xcc], 0
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 2
push eax
push dword [ebp - 0x18]
lea ecx, [esi - 0x34]
push dword [ebp - 0x1c]
call fcn.0040c820
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x40b434
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf8]
call eax
test eax, eax
je 0x40b434
mov edi, dword [esi + 0xb8]
mov edx, dword [ebx + 0x14]
cmp edi, dword [esi + 0xbc]
je 0x40b41c
nop
mov ecx, dword [edi]
test ecx, ecx
je 0x40b411
mov eax, dword [ecx]
lea esi, [ebp - 0xc4]
push esi
mov esi, dword [ebp - 0xcc]
push edx
push dword [ebx + 0x10]
push 0x20
push esi
call dword [eax]
mov edx, dword [ebx + 0x14]
add edi, 4
cmp edi, dword [esi + 0xbc]
jne 0x40b3f0
mov eax, dword [esi]
lea ecx, [ebp - 0xc4]
push ecx
push edx
push dword [ebx + 0x10]
mov ecx, esi
push 0x20
push esi
call dword [eax + 0xc0]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40b445
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0xc4], 0
mov dword [ecx], 0
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0xc8]
jmp 0x40af29
cmp edi, 0x84
jne 0x40b49c
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 1
push eax
push dword [ebx + 0x14]
lea ecx, [esi - 0x34]
push dword [ebx + 0x10]
push edi
call fcn.0040d770
jmp 0x40b0bd
cmp edi, 0x83
je 0x40bb51
cmp edi, 0x86
jne 0x40b4c0
mov dword [ecx], 1
mov eax, 1
jmp 0x40af31
cmp edi, 0x100
jne 0x40b510
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [ebp - 0xc4], eax
test edx, edx
je 0x40b505
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push edi
push edx
call fcn.0040da40
mov ecx, dword [ebp - 0xc8]
mov edx, eax
mov eax, dword [ebp - 0xc4]
test eax, eax
mov dword [ecx], edx
jmp 0x40b0cc
xor edx, edx
test eax, eax
mov dword [ecx], edx
jmp 0x40b0cc
cmp edi, 0x101
jne 0x40b555
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [ebp - 0xc4], eax
test edx, edx
je 0x40b505
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push edi
push edx
call fcn.0040da40
mov ecx, dword [ebp - 0xc8]
mov edx, eax
mov eax, dword [ebp - 0xc4]
test eax, eax
mov dword [ecx], edx
jmp 0x40b0cc
cmp edi, 0x102
jne 0x40b59a
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [ebp - 0xc4], eax
test edx, edx
je 0x40b505
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push edi
push edx
call fcn.0040da40
mov ecx, dword [ebp - 0xc8]
mov edx, eax
mov eax, dword [ebp - 0xc4]
test eax, eax
mov dword [ecx], edx
jmp 0x40b0cc
cmp edi, 0x104
jne 0x40b5e3
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [ebp - 0xc4], eax
test edx, edx
je 0x40b505
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push edi
push edx
call fcn.0040da40
mov ecx, dword [ebp - 0xc8]
mov edx, eax
mov eax, dword [ebp - 0xc4]
test eax, eax
mov dword [ecx], edx
jmp 0x40b0cc
cmp edi, 0x18
jne 0x40b67e
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 0x10]
test ecx, ecx
je 0x40b5ff
mov eax, dword [ecx]
push edi
call dword [eax + 0x100]
cmp dword [esi + 0xb8], 0
mov dword [ebp - 0xc4], 0
je 0x40aec6
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x40aec6
mov eax, dword [eax + 0x38]
test edi, edi
je 0x40b645
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
test eax, eax
je 0x40aec6
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 0x47
jne 0x40b787
mov edx, dword [esi + 0x2c]
lea ecx, [esi - 0x34]
test edx, edx
je 0x40b69b
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x24]
lea ecx, [esi - 0x34]
cmp dword [ecx + 0xec], 0
je 0x40b764
mov eax, dword [ecx + 0xe8]
test eax, eax
je 0x40b764
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b761
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40b750
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b750
mov eax, dword [esi + 0xb4]
push 5
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi - 4]
push 5
call fcn.00423d20
mov ecx, dword [esi - 4]
sub dword [ebp - 0x24], eax
push 3
call fcn.00423d20
mov ecx, dword [esi - 4]
sub dword [ebp - 0x20], eax
push 5
call fcn.00423d20
mov ecx, dword [esi - 4]
add dword [ebp - 0x1c], eax
push 7
call fcn.00423d20
add dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 0xb4]
push 1
push eax
add ecx, 0x38
call fcn.0040ff20
jmp 0x40b761
mov eax, dword [esi + 0xb4]
push 0
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi - 0x34]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], 1
mov dword [eax], 0
lea eax, [edi - 0x2b]
jmp 0x40ba5a
cmp edi, 0x46
jne 0x40b8be
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0xc4], 0
test edx, edx
jne 0x40b7b5
mov dword [ecx], edx
lea eax, [edi - 0x2b]
mov dword [ebp - 0xc4], 1
jmp 0x40ba5d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x40b87c
mov esi, dword [ebx + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x80], 0x28
movups xmmword [ebp - 0x70], xmm0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
add eax, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x80]
push eax
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], edx
push eax
movq qword [ebp - 0x60], xmm0
call dword [sym.imp.USER32.dll_MonitorFromRect]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x34]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
call esi
mov eax, dword [ebp - 0x78]
neg eax
push eax
mov eax, dword [ebp - 0x7c]
neg eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
mov edx, dword [ebx + 0x14]
test eax, eax
jne 0x40b88d
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp dword [edx + 0x10], eax
jle 0x40b866
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0xcc]
cmp dword [edx + 0x14], eax
jle 0x40b893
mov dword [edx + 0x14], eax
jmp 0x40b893
mov eax, dword [esi - 0x34]
lea ecx, [esi - 0x34]
push dword [ebx + 0x14]
call dword [eax + 0x54]
mov edx, dword [ebx + 0x14]
jmp 0x40b893
mov esi, dword [ebp - 0xcc]
cmp dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
lea eax, [edi - 0x2b]
jmp 0x40ba5d
cmp edi, 0x24
jne 0x40b967
push 1
push dword [esi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x40b92e
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0xb8]
neg eax
push eax
mov eax, dword [ebp - 0xbc]
neg eax
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x40b93e
push 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0
jmp 0x40b9c6
cmp edi, 0xf48
jne 0x40b9e2
mov esi, dword [ebx + 0x10]
xor edi, edi
mov dword [ebp - 0xc4], 1
test esi, esi
jne 0x40b98c
mov dword [ecx], edi
lea eax, [edi + 1]
jmp 0x40af31
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40b9b0
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
push dword [ebx + 0x14]
push dword [esi + 8]
mov eax, dword [eax + 0xc0]
push dword [esi + 4]
push ecx
call eax
mov edi, eax
cmp dword [esi + 0x10], 0
je 0x40b9be
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, dword [ebp - 0xc8]
mov dword [eax], edi
cmp dword [ebp - 0xc4], 0
jne 0x40b4b6
mov dword [ebp - 0xc4], 1
jmp 0x40af29
cmp edi, 0x2e0
je 0x40bb51
mov eax, 1
mov dword [ebp - 0xc4], eax
test edi, edi
jne 0x40ba3a
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x40ba2f
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push edi
push edx
call fcn.0040da40
mov ecx, dword [ebp - 0xc8]
mov edx, eax
mov eax, dword [ebp - 0xc4]
test eax, eax
mov dword [ecx], edx
jmp 0x40b458
xor edx, edx
test eax, eax
mov dword [ecx], edx
jmp 0x40b458
cmp edi, 0x132
ja 0x40bacf
je case.0x40bae7.307
lea eax, [edi - 0x2b]
cmp eax, 0xea
ja case.default.0x40bae7
mov edx, dword [ebx + 0x14]
movzx eax, byte [eax + 0x40bb84]
jmp dword [eax*4 + 0x40bb64]
test edx, edx
je case.0x40bae7.313
jmp case.0x40ba64.46
mov ecx, dword [edx]
jmp 0x40bb1e
mov eax, dword [ebx + 0x10]
test eax, eax
je case.0x40bae7.313
mov ecx, dword [edx + 0x14]
jmp 0x40bb21
cmp dword [ebx + 0x10], 0
je case.0x40bae7.313
push dword [edx + 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebx + 0x14]
mov ecx, eax
jmp 0x40bb1e
mov eax, dword [ebx + 0x10]
test eax, eax
je case.0x40bae7.313
mov ecx, dword [edx + 8]
jmp 0x40bb21
mov eax, dword [ebx + 0x10]
test eax, eax
je case.0x40bae7.313
mov ecx, dword [edx + 0xc]
jmp 0x40bb21
lea eax, [edi - 0x133]
cmp eax, 0xdd
ja case.default.0x40bae7
movzx eax, byte [eax + 0x40bc7c]
jmp dword [eax*4 + 0x40bc70]
mov eax, dword [ebx + 0x10]
movzx ecx, ax
sub ecx, 1
je 0x40bb12
sub ecx, 1
je 0x40bb12
shr eax, 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebx + 0x14]
mov ecx, eax
jmp 0x40bb1e
mov edx, dword [ebx + 0x14]
mov ecx, edx
jmp 0x40bb21
mov edx, dword [ebx + 0x14]
mov ecx, edx
mov eax, dword [ebx + 0x10]
test ecx, ecx
je case.0x40bae7.313
push edx
push eax
lea eax, [edi + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 0xc4], eax
setne al
jmp 0x40af31
mov dword [ecx], 0
mov eax, 1
jmp 0x40af31