Function at 0x417cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4b4200]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x40]
cmp ebx, 0xffffffff
jne 0x417cd6
mov ebx, dword [eax]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4183c2
cmp ebx, 1
jl 0x4183c2
cmp ebx, dword [eax]
jg 0x4183c2
lea esi, [ebx + ebx*8]
cmp dword [ecx + esi*8 + 0xc], 0
lea edx, [ecx + esi*8]
je 0x4183c2
mov eax, dword [edx]
cmp eax, 0x10
je 0x4182d2
cmp eax, 0x11
je 0x4182d2
cmp eax, 0x1c
jne 0x417dac
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ebx
push 0x412
push dword [edx + 4]
call esi
mov ecx, dword [ebp + 0xc]
test cl, 4
je 0x417d40
or eax, 1
jmp 0x417d48
test cl, 8
je 0x417d48
and eax, 0xfffffffe
test cl, 0x20
je 0x417d52
or eax, 4
jmp 0x417d5a
test cl, 0x40
je 0x417d5a
and eax, 0xfffffffb
test cl, cl
jns 0x417d63
or eax, 2
jmp 0x417d6e
test ecx, 0x100
je 0x417d6e
and eax, 0xfffffffd
test cl, 2
je 0x417d78
and eax, 0xfffffff7
jmp 0x417d80
test cl, 1
je 0x417d80
or eax, 8
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + ebx*8]
push ebx
push 0x411
push dword [eax + ecx*8 + 4]
call esi
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x23
je 0x41802c
cmp eax, 0x24
je 0x41802c
mov edx, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x25
jne 0x417e94
test dl, 0xc
je 0x417f33
lea eax, [ebx + ebx*8]
mov eax, dword [ecx + eax*8 + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4183c2
test edx, 4
mov ecx, edx
mov edx, dword [esp + 0x10]
mov eax, 0
sete al
lea eax, [eax*4 + 4]
mov dword [edx], eax
xor eax, eax
test ecx, 4
lea ecx, [ebx + ebx*8]
sete al
lea eax, [eax*4 + 4]
mov edx, dword [eax + edx]
mov eax, dword [edi + 0x3c]
push edx
push 0
push 0x172
mov eax, dword [eax + ecx*8 + 4]
push eax
mov dword [esp + 0x20], eax
call esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x417e7c
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x417e7c
push 2
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417f30
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x417f30
cmp eax, 0x19
jne 0x417f33
mov eax, edx
and eax, 3
mov dword [esp + 0x10], eax
je 0x417f33
test ecx, ecx
je 0x417edc
cmp ebx, dword [edi + 0x40]
jg 0x417edc
lea eax, [ebx + ebx*8]
cmp dword [ecx + eax*8 + 0xc], 0
je 0x417edc
lea eax, [ebx + ebx*8]
mov eax, dword [ecx + eax*8 + 4]
test eax, eax
je 0x417edc
push 0
push 0
push 0x130b
push eax
call esi
test eax, eax
js 0x417f30
jmp 0x417ede
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
push ecx
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + ebx*8]
push 0x133c
xorps xmm0, xmm0
mov dword [esp + 0x40], 0xffffffff
movlpd qword [esp + 0x2c], xmm0
push dword [eax + ecx*8 + 4]
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x2c], 8
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x417f30
push dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.00417cb0
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + ebx*8]
mov esi, dword [eax + ecx*8 + 4]
test dl, 1
je 0x417f5b
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xefffffff
jmp 0x417f77
test dl, 2
je 0x417f84
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + ebx*8]
mov eax, dword [eax + ecx*8]
cmp eax, 4
je 0x417f97
cmp eax, 0x15
jne 0x417fc3
test dl, 4
je 0x417fa2
push 0
push 1
jmp 0x417fb6
test dl, 8
je 0x417fad
push 0
push 0
jmp 0x417fb6
test dl, 0x10
je 0x417fc3
push 0
push 2
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
push 0xf1
push esi
call eax
mov ebx, dword [ebp + 0xc]
test bl, 0x20
je 0x417fcf
push 1
jmp 0x417fd6
test bl, 0x40
je 0x417fdd
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test bl, bl
jns 0x417ffe
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
test ebx, 0x100
je 0x4182bc
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ecx + esi*8 + 0x44]
mov dword [esp + 0xc], esi
test esi, esi
je 0x4183c2
mov eax, dword [ebp + 0xc]
test al, 1
je 0x41805a
mov eax, dword [esi]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [eax + eax*8]
push dword [ecx + eax*8 + 4]
call esi
push 0
jmp 0x418073
test al, 2
je 0x41808d
mov eax, dword [esi]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
lea eax, [eax + eax*8]
push dword [ecx + eax*8 + 4]
call esi
push 5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push dword [eax + ecx*8 + 4]
call esi
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
test al, 4
je 0x4181c6
mov eax, dword [esi]
push dword [esi + 0xc]
push 0
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push 0x172
mov eax, dword [eax + ecx*8 + 4]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x418102
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x14], eax
test eax, eax
je 0x418102
push 2
lea ecx, [esp + 0x20]
push ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418111
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 4
lea ecx, [ebx + ebx*8]
mov eax, dword [edi + 0x3c]
cmp dword [eax + ecx*8], 0x24
jne 0x418185
mov esi, dword [esi]
dec esi
test esi, esi
jle 0x41815a
lea ebx, [esi + esi*8]
shl ebx, 3
mov eax, dword [edi + 0x3c]
mov eax, dword [ebx + eax]
cmp eax, 0x23
je 0x418152
cmp eax, 0x24
je 0x418148
cmp eax, 0xd
jne 0x41815a
jmp 0x418152
push 8
push esi
mov ecx, edi
call fcn.00417cb0
dec esi
sub ebx, 0x48
test esi, esi
jg 0x418131
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx + 4]
inc esi
cmp esi, dword [edi + 0x40]
jg 0x418189
lea ebx, [esi + esi*8]
shl ebx, 3
nop dword [eax]
mov eax, dword [edi + 0x3c]
mov eax, dword [ebx + eax]
cmp eax, 0x23
je 0x4181bb
cmp eax, 0x24
je 0x4181b1
cmp eax, 0xd
je 0x4181bb
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
test al, 0x20
je 0x41824e
mov eax, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push dword [eax + ecx*8 + 4]
call esi
push 1
jmp 0x41826a
push 8
push esi
mov ecx, edi
call fcn.00417cb0
inc esi
add ebx, 0x48
cmp esi, dword [edi + 0x40]
jle 0x418170
jmp 0x418185
test al, 8
je 0x418245
mov eax, dword [esi]
push dword [esi + 0x10]
push 0
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push 0x172
mov ebx, dword [eax + ecx*8 + 4]
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x41822a
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41822a
push 2
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418239
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 8
jmp 0x418185
mov ebx, dword [esp + 0xc]
jmp 0x41818c
test al, 0x40
je 0x41827c
mov eax, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push dword [eax + ecx*8 + 4]
call esi
push 0
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push dword [eax + ecx*8 + 4]
call esi
mov eax, dword [ebp + 0xc]
test al, al
jns 0x4182a9
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x3c]
push dword [eax + ecx*8 + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
test eax, 0x100
je 0x4182bc
push dword [edi + 0x230]
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x30
push eax
push 0
push ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
push dword [edx + 8]
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4183c2
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
test cl, 4
je 0x418358
or eax, 8
jmp 0x418360
test cl, 8
je 0x418364
and eax, 0xfffffff7
mov dword [esp + 0x28], eax
test cl, 0x20
je 0x41836e
and eax, 0xfffffffc
jmp 0x418376
test cl, 0x40
je 0x41837a
or eax, 3
mov dword [esp + 0x28], eax
test cl, cl
jns 0x418385
or eax, 0x80
jmp 0x418392
test ecx, 0x100
je 0x418396
and eax, 0xffffff7f
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + ebx*8]
push 0
push ebx
push dword [eax + ecx*8 + 8]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8