Function at 0x417af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4b5200]
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 0x417b16
mov ebx, dword [eax]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4181f6
cmp ebx, 1
jl 0x4181f6
cmp ebx, dword [eax]
jg 0x4181f6
lea esi, [ebx + ebx*8]
cmp dword [ecx + esi*8 + 0xc], 0
lea edx, [ecx + esi*8]
je 0x4181f6
mov eax, dword [edx]
cmp eax, 0x10
je 0x418102
cmp eax, 0x11
je 0x418102
cmp eax, 0x1c
jne 0x417bec
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 0x417b80
or eax, 1
jmp 0x417b88
test cl, 8
je 0x417b88
and eax, 0xfffffffe
test cl, 0x20
je 0x417b92
or eax, 4
jmp 0x417b9a
test cl, 0x40
je 0x417b9a
and eax, 0xfffffffb
test cl, cl
jns 0x417ba3
or eax, 2
jmp 0x417bae
test ecx, 0x100
je 0x417bae
and eax, 0xfffffffd
test cl, 2
je 0x417bb8
and eax, 0xfffffff7
jmp 0x417bc0
test cl, 1
je 0x417bc0
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.0046b2f5
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x23
je 0x417e5f
cmp eax, 0x24
je 0x417e5f
mov edx, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x25
jne 0x417cd4
test dl, 0xc
je 0x417d66
lea eax, [ebx + ebx*8]
mov eax, dword [ecx + eax*8 + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4181f6
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 0x417cbc
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x417cbc
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 0x417d63
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x417d63
cmp eax, 0x19
jne 0x417d66
mov eax, edx
and eax, 3
mov dword [esp + 0x10], eax
je 0x417d66
cmp ebx, dword [edi + 0x40]
jg 0x417d12
lea eax, [ebx + ebx*8]
cmp dword [ecx + eax*8 + 0xc], 0
je 0x417d12
push 0
push 0
push 0x130b
lea eax, [ebx + ebx*8]
push dword [ecx + eax*8 + 4]
call esi
mov ecx, dword [edi + 0x3c]
test eax, eax
js 0x417d63
jmp 0x417d14
xor eax, eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], 0
push edx
push eax
push 0x133c
lea eax, [ebx + ebx*8]
mov dword [esp + 0x40], 0xffffffff
push dword [ecx + eax*8 + 4]
xorps xmm0, xmm0
mov dword [esp + 0x2c], 8
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x417d63
push dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.00417af0
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 0x417d8e
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 0x417daa
test dl, 2
je 0x417db7
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 0x417dca
cmp eax, 0x15
jne 0x417df6
test dl, 4
je 0x417dd5
push 0
push 1
jmp 0x417de9
test dl, 8
je 0x417de0
push 0
push 0
jmp 0x417de9
test dl, 0x10
je 0x417df6
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 0x417e02
push 1
jmp 0x417e09
test bl, 0x40
je 0x417e10
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test bl, bl
jns 0x417e31
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.0046b2f5
mov esp, ebp
pop ebp
ret 8
test ebx, 0x100
je 0x4180ec
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.0046b2f5
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ecx + esi*8 + 0x44]
mov dword [esp + 0xc], esi
test esi, esi
je 0x4181f6
mov eax, dword [ebp + 0xc]
test al, 1
je 0x417e8d
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 0x417ea6
test al, 2
je 0x417ec0
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 0x417ff6
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 0x417f35
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x14], eax
test eax, eax
je 0x417f35
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 0x417f44
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 0x417fb5
mov esi, dword [esi]
dec esi
test esi, esi
jle 0x417f8d
lea ebx, [esi + esi*8]
shl ebx, 3
mov eax, dword [edi + 0x3c]
mov eax, dword [ebx + eax]
cmp eax, 0x23
je 0x417f85
cmp eax, 0x24
je 0x417f7b
cmp eax, 0xd
jne 0x417f8d
jmp 0x417f85
push 8
push esi
mov ecx, edi
call fcn.00417af0
dec esi
sub ebx, 0x48
test esi, esi
jg 0x417f64
mov ebx, dword [esp + 0xc]
mov esi, dword [ebx + 4]
inc esi
cmp esi, dword [edi + 0x40]
jg 0x417fb9
lea ebx, [esi + esi*8]
shl ebx, 3
mov eax, dword [edi + 0x3c]
mov eax, dword [ebx + eax]
cmp eax, 0x23
je 0x417feb
cmp eax, 0x24
je 0x417fe1
cmp eax, 0xd
je 0x417feb
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
test al, 0x20
je 0x41807e
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 0x41809a
push 8
push esi
mov ecx, edi
call fcn.00417af0
inc esi
add ebx, 0x48
cmp esi, dword [edi + 0x40]
jle 0x417fa0
jmp 0x417fb5
test al, 8
je 0x418075
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 0x41805a
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41805a
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 0x418069
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 8
jmp 0x417fb5
mov ebx, dword [esp + 0xc]
jmp 0x417fbc
test al, 0x40
je 0x4180ac
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 0x4180d9
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.0046b2f5
mov esp, ebp
pop ebp
ret 8
test eax, 0x100
je 0x4180ec
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.0046b2f5
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 0x4181f6
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
test cl, 4
je 0x41818c
or eax, 8
jmp 0x418194
test cl, 8
je 0x418198
and eax, 0xfffffff7
mov dword [esp + 0x28], eax
test cl, 0x20
je 0x4181a2
and eax, 0xfffffffc
jmp 0x4181aa
test cl, 0x40
je 0x4181ae
or eax, 3
mov dword [esp + 0x28], eax
test cl, cl
jns 0x4181b9
or eax, 0x80
jmp 0x4181c6
test ecx, 0x100
je 0x4181ca
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.0046b2f5
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.0046b2f5
mov esp, ebp
pop ebp
ret 8