Function at 0x490350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x491178
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0xc5], 1
cmp byte [ecx], 0
je 0x490385
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x20], connect
mov dword [esp + 0x2c], connect
mov dword [esp + 0x14], connect
mov dword [esp + 0x10], connect
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov esi, eax
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4903d1
mov edx, 9
jmp 0x4903df
xor edx, edx
test esi, esi
setne dl
lea edx, [edx*4 + 1]
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0x20], edx
mov al, byte [eax]
test al, al
je 0x4906fc
movzx eax, al
mov dword [esp + 0x18], eax
test eax, 0xffffff80
jne 0x490418
push 2
push eax
call fcn.004c7451
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
je 0x490418
and eax, 0xffffffdf
movsx eax, al
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x49042a.10
movzx eax, byte [eax + 0x4911ac]
jmp dword [eax*4 + 0x491188]
inc dword [esp + 8]
mov esi, dword [ebp + 8]
cmp dword [esp + 8], esi
je 0x4906dc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov dword [ebp + 8], ecx
cmp byte [ecx], 0
je 0x4906f4
mov al, byte [ecx]
jmp 0x4903f4
mov esi, dword [ebp + 8]
push 8
push str.AutoSize
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne case.0x490665.73
add dword [esp + 8], 8
mov byte [esp + 0x17], 1
jmp case.0x490665.73
mov esi, dword [ebp + 8]
push 6
push str.Center
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne case.0x490665.73
add dword [esp + 8], 6
mov dword [esp + 0x1c], connect
mov dword [esp + 0x28], connect
jmp case.0x490665.73
mov esi, dword [ebp + 8]
push 8
push str.Minimize
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x4904d4
add dword [esp + 8], 8
mov dword [esp + 0x20], 6
jmp case.0x490665.73
push 8
push str.Maximize
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne case.0x490665.73
add dword [esp + 8], 8
mov dword [esp + 0x20], 3
jmp case.0x490665.73
mov esi, dword [ebp + 8]
push 2
push 0x4efec8
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x490527
add dword [esp + 8], 2
mov dword [esp + 0x20], 8
jmp case.0x490665.73
push 0xa
push str.NoActivate
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne case.0x490665.73
add dword [esp + 8], 0xa
mov dword [esp + 0x20], 4
jmp case.0x490665.73
mov esi, dword [ebp + 8]
push 7
push str.Restore
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne case.0x490665.73
add dword [esp + 8], 7
mov dword [esp + 0x20], 9
jmp case.0x490665.73
mov esi, dword [ebp + 8]
push 6
push str.Center
lea eax, [esi + 1]
push eax
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x4905e7
movzx eax, byte [esi]
mov dword [esp + 0x18], eax
test eax, 0xffffff80
jne 0x4905bc
push 2
push eax
call fcn.004c7451
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4905bc
and eax, 0xffffffdf
cmp al, 0x58
jne 0x4905d2
add dword [esp + 8], 7
mov dword [esp + 0x1c], connect
jmp 0x490442
add dword [esp + 8], 7
mov dword [esp + 0x28], connect
jmp 0x490442
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x49060b
add dword [esp + 8], 4
xor edx, edx
mov dword [esp + 0x20], edx
jmp 0x490446
lea eax, [esp + 8]
inc esi
push eax
push esi
call fcn.004cdf98
add esp, 8
cmp dword [esp + 8], esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x50]
je 0x4906d8
movzx eax, byte [esi]
mov dword [esp + 0x18], eax
test eax, 0xffffff80
jne 0x49064f
push 2
push eax
call fcn.004c7451
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
je 0x49064f
and eax, 0xffffffdf
movsx eax, al
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x490665.73
movzx eax, byte [eax + 0x491214]
jmp dword [eax*4 + 0x491200]
cvttsd2si eax, qword [esp + 0x50]
mov dword [esp + 0x1c], eax
jmp case.0x490665.73
cvttsd2si eax, qword [esp + 0x50]
mov dword [esp + 0x28], eax
jmp case.0x490665.73
cmp byte [edi + 0xc8], 0
cvttsd2si eax, qword [esp + 0x50]
je 0x4906a8
push 0x60
push dword [0x4fda58]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
jmp case.0x490665.73
cmp byte [edi + 0xc8], 0
cvttsd2si eax, qword [esp + 0x50]
je 0x4906cf
push 0x60
push dword [0x4fda58]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0xc], eax
jmp case.0x490665.73
mov dword [esp + 8], esi
push esi
push str.Invalid_option.
mov ecx, 0x4fda88
call fcn.0044dd10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov byte [esp + 0x27], 0
test edx, edx
je 0x490727
cmp edx, 9
je 0x49071f
cmp edx, 4
jne 0x490736
test esi, esi
jne 0x490727
test ecx, ecx
je 0x490736
push edx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x27], 1
cmp byte [edi + 0xc3], 0
je 0x490774
xor ecx, ecx
mov dword [esp + 8], ecx
cmp dword [edi + 0x10], ecx
jbe 0x490774
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x490767
push eax
mov ecx, edi
call fcn.00496520
mov ecx, dword [esp + 8]
inc ecx
add esi, 0x40
mov dword [esp + 8], ecx
cmp ecx, dword [edi + 0x10]
jb 0x490750
cmp dword [edi + 0xcc], 0
jne 0x4907fd
push 0x1c
call fcn.004c0946
push 0x1c
mov dword [edi + 0xd0], eax
call fcn.004c0946
mov dword [edi + 0xcc], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0xd0]
add esp, 8
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xcc]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xcc]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xd0]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xcc]
mov dword [eax + 4], 3
mov eax, dword [edi + 0xd0]
mov dword [eax + 4], 3
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
sete byte [esp + 0x4f]
test eax, eax
jne 0x490a3d
cmp byte [esp + 0x17], 0
je 0x49092e
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4908f0
xor eax, eax
mov dword [esp + 8], eax
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x4908bf
cmp byte [esi + 6], 0xff
je 0x490863
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x4908b7
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4908b7
lea eax, [esp + 0x70]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x74]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x78], edx
mov ecx, dword [esp + 0xc]
cmovg edx, dword [esp + 0x78]
cmp dword [esp + 0x7c], ecx
mov dword [esp + 0x10], edx
cmovg ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
jmp 0x4908bf
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
add dword [esp + 8], 0x40
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 8]
jb 0x490845
test edx, edx
jle 0x4908e5
add edx, dword [edi + 0x78]
mov dword [esp + 0x10], edx
test ecx, ecx
jle 0x4908f0
add ecx, dword [edi + 0x7c]
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x490a3d
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x490a3d
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
add dword [esp + 0xc], eax
jmp 0x490a3d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp edx, 0x80000000
je 0x49094a
cmp ecx, 0x80000000
jne 0x490a3d
cmp byte [edi + 0xc3], 0
je 0x4909c1
cmp edx, 0x80000000
jne 0x490968
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x10], eax
cmp ecx, 0x80000000
jne 0x490a3d
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0xc], esi
test eax, eax
je 0x490a3d
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x490a3d
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
add esi, eax
mov dword [esp + 0xc], esi
jmp 0x490a3d
lea eax, [esp + 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x10], 0x80000000
jne 0x490a06
test dword [edi + 0x3c], 0x200000
je 0x4909f8
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x4909f8
push 0x14
call esi
mov edx, eax
jmp 0x4909fa
xor edx, edx
sub edx, dword [esp + 0x70]
add edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
cmp dword [esp + 0xc], 0x80000000
jne 0x490a3d
test dword [edi + 0x3c], 0x100000
je 0x490a2f
mov ecx, dword [edi + 0xd0]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x490a2f
push 3
call esi
mov ecx, eax
jmp 0x490a31
xor ecx, ecx
sub ecx, dword [esp + 0x74]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
cmp byte [edi + 0xc3], 0
je 0x490aab
cmp byte [edi + 0xc0], 0
je 0x490a86
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x10], ecx
jbe 0x490a86
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x490a79
push 0
push eax
mov ecx, edi
call fcn.00495d00
mov ecx, dword [esp + 0x30]
inc ecx
add esi, 0x40
mov dword [esp + 0x30], ecx
cmp ecx, dword [edi + 0x10]
jb 0x490a60
mov eax, dword [esp + 0x1c]
mov ecx, connect
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x28], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x4f], 0
mov dword [esp + 0x2c], eax
je 0x491033
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [edi + 4]
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x490b13
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x490b13
mov esi, 1
jmp 0x490b15
xor esi, esi
push 0xffffffffffffffec
push dword [edi + 4]
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x68]
push esi
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, esi
and eax, 0x100000
mov dword [esp + 0x10], eax
je 0x490b88
mov eax, dword [edi + 0xd0]
mov ecx, dword [edi + 0x90]
add ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xd0]
cmp eax, 0x80000000
jne 0x490b6f
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xd0]
push 0
push dword [edi + 4]
call edx
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
and esi, 0x200000
je 0x490bc9
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x94]
add ecx, dword [edi + 0x7c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0xcc]
cmp eax, 0x80000000
jne 0x490bb6
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xcc]
push 1
push dword [edi + 4]
call edx
cmp dword [esp + 0x10], 0
je 0x490bf5
mov ecx, dword [esp + 0x18]
cmp ecx, 0x80000000
je 0x490bf5
mov eax, dword [edi + 0x94]
add eax, dword [edi + 0x7c]
cmp ecx, eax
jge 0x490bf5
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x6c], eax
test esi, esi
mov esi, dword [esp + 0x50]
je 0x490c1e
cmp esi, 0x80000000
je 0x490c1e
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
cmp esi, eax
jge 0x490c1e
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x68], eax
cmp dword [esp + 0x30], 0
je 0x490c54
movaps xmm0, xmmword [esp + 0x60]
lea eax, [esp + 0x30]
push eax
push 0
push 0x83
push dword [edi + 4]
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x4c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x34]
add dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x490c93
test dword [esp + 8], 0x40000000
je 0x490c93
lea ecx, [esp + 0x90]
mov byte [esp + 0x17], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x490cac
push 0
lea eax, [esp + 0x94]
mov byte [esp + 0x1b], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
sub edx, dword [esp + 0x90]
cmp byte [edi + 0xc3], 0
mov dword [esp + 0x30], eax
je 0x490d0e
cmp byte [esp + 0x17], 0
jne 0x490d0e
cmp esi, 0x80000000
jne 0x490cf5
mov eax, dword [esp + 0xc]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x18], 0x80000000
mov ecx, dword [esp + 0x10]
jne 0x490d12
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x490d12
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0x80000001
mov esi, dword [esp + 0xc]
jne 0x490d34
sub edx, esi
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x28], 0x80000001
jne 0x490d54
mov eax, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x94]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
sub eax, edx
cmp esi, eax
jne 0x490db5
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
sub eax, ecx
cmp dword [esp + 0x10], eax
jne 0x490db5
mov eax, dword [esp + 0x1c]
cmp eax, 0x80000000
je 0x490d9e
cmp eax, edx
jne 0x490db5
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
je 0x490e44
cmp eax, ecx
je 0x490e44
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x490dcd
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x4fb960]
xor ecx, ecx
mov dword [esp + 0x30], eax
test edx, edx
jle 0x490e0b
mov eax, dword [0x4fb95c]
nop dword [eax + eax]
mov esi, dword [eax + ecx*4]
mov edx, dword [esp + 0x30]
cmp dword [esi + 4], edx
mov edx, dword [0x4fb960]
je 0x490eb2
inc ecx
cmp ecx, edx
jl 0x490df0
push dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
push dword [esp + 0x14]
cmove eax, dword [esp + 0x8c]
push dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
cmove eax, dword [esp + 0x90]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xc3], 0
je 0x491033
lea eax, [esp + 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x50]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov esi, dword [esp + 0x58]
sub eax, esi
sub edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, edx
sub eax, dword [esp + 0x5c]
cmp dword [edi + 0xb0], 0x80000001
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
jne 0x490f8f
mov dword [edi + 0xb0], ecx
jmp 0x490fa5
test esi, esi
je 0x490e0b
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x30], edx
cmp edx, dword [esi + 0x10]
jb 0x490f00
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x18], eax
test eax, eax
je 0x490ef3
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x490ef7
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x10]
jae 0x490e0b
mov eax, dword [esp + 0x18]
mov ecx, edx
shl ecx, 6
add ecx, dword [esi + 0x18]
cmp dword [ecx], eax
jne 0x490e0b
cmp edx, 0x2af8
je 0x490e0b
test ecx, ecx
je 0x490e0b
cmp byte [edi + 0xc3], 0
jne 0x490e0b
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x80000000
push dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
cmove ecx, eax
push dword [esp + 0x14]
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x38]
cmp edx, 0x80000000
push dword [esp + 0x14]
cmove edx, eax
push ecx
push edx
jmp 0x490e3b
cmp dword [edi + 0xb0], 0x80000000
je 0x490fa5
add dword [edi + 0xb0], eax
mov esi, dword [esp + 0x58]
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x490fba
mov dword [edi + 0xb4], edx
jmp 0x490fcf
cmp eax, 0x80000000
je 0x490fcf
add eax, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0xb8]
cmp eax, 0x80000001
jne 0x490fe4
mov dword [edi + 0xb8], ecx
jmp 0x490ff5
cmp eax, 0x80000000
je 0x490ff5
add eax, dword [esp + 0x2c]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xbc]
cmp eax, 0x80000001
jne 0x49100a
mov dword [edi + 0xbc], edx
jmp 0x49101b
cmp eax, 0x80000000
je 0x49101b
add eax, dword [esp + 0x30]
mov dword [edi + 0xbc], eax
sub esi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], eax
cmp byte [esp + 0x27], 0
jne 0x49106b
mov eax, dword [esp + 0x20]
cmp eax, 6
jne 0x491061
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x49105d
push 0
push 0
push 6
push esi
call dword [sym.imp.USER32.dll_DefDlgProcA]
mov eax, dword [esp + 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja case.0x491080.2
movzx eax, byte [eax + 0x491230]
jmp dword [eax*4 + 0x491228]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x491080.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x4910af
mov ecx, esi
call fcn.004b0fb0
cmp byte [edi + 0xc4], 0
je case.0x491080.2
mov byte [edi + 0xc4], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x491154
cmp byte [edi + 0xc0], 0
je case.0x491080.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x49110f
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x491113
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [esp + 0x1c]
cmp esi, dword [edi + 0x10]
jae case.0x491080.2
mov eax, dword [edi + 0x18]
mov ecx, esi
shl ecx, 6
add eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [eax], edx
jne case.0x491080.2
cmp esi, 0x2af8
je case.0x491080.2
test eax, eax
je case.0x491080.2
cmp byte [eax + 4], 0x13
jne case.0x491080.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x30]
mov ecx, edi
call fcn.00495d00
jmp case.0x491080.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, 1
mov byte [edi + 0xc3], 0
or ecx, 0xffffffff
mov byte [edi + 0xc5], 0
call fcn.004018a0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8