Function at 0x492990
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 ecx, dword [edi + 4]
test ecx, ecx
je 0x4937d3
mov eax, dword [ebp + 0xc]
mov byte [edi + 0xc5], 1
cmp word [eax], 0
je 0x4929c3
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi + 4]
mov dword [esp + 0x28], closesocket
mov dword [esp + 0x3c], closesocket
mov dword [esp + 0x1c], closesocket
mov dword [esp + 0x20], closesocket
mov byte [esp + 0x27], 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 edx, eax
mov dword [esp + 0x3c], edx
test edx, edx
je 0x492a14
mov dword [esp + 0x30], 9
jmp 0x492a26
xor eax, eax
test esi, esi
setne al
lea eax, [eax*4 + 1]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x492d4a
nop dword [eax + eax]
movzx esi, ax
test esi, 0xffffff80
jne 0x492a5e
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x492a5e
and esi, 0xffffffdf
add esi, 0xfffffff7
cmp esi, 0x50
ja case.0x492a6d.10
movzx eax, byte [esi + 0x493804]
jmp dword [eax*4 + 0x4937e0]
add dword [esp + 0x14], 2
mov esi, dword [ebp + 8]
cmp dword [esp + 0x14], esi
je 0x492d2a
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], ecx
cmp word [ecx], 0
je 0x492d42
movzx eax, word [ecx]
jmp 0x492a40
mov esi, dword [ebp + 8]
push 8
push str.AutoSize
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne case.0x492cb3.73
add dword [esp + 0x14], 0x10
mov byte [esp + 0x23], 1
jmp case.0x492cb3.73
mov esi, dword [ebp + 8]
push 6
push str.Center
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne case.0x492cb3.73
add dword [esp + 0x14], 0xc
mov dword [esp + 0x24], htonl
mov dword [esp + 0x38], htonl
jmp case.0x492cb3.73
mov esi, dword [ebp + 8]
push 8
push str.Minimize
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x492b19
add dword [esp + 0x14], 0x10
mov dword [esp + 0x30], 6
jmp case.0x492a6d.10
push 8
push str.Maximize
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x492cb3.73
add dword [esp + 0x14], 0x10
mov dword [esp + 0x30], 3
jmp case.0x492cb3.73
mov esi, dword [ebp + 8]
push 2
push 0x4efb34
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x492b71
add dword [esp + 0x14], 4
mov dword [esp + 0x30], 8
jmp case.0x492a6d.10
push 0xa
push str.NoActivate
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x492cb3.73
add dword [esp + 0x14], 0x14
mov dword [esp + 0x30], 4
jmp case.0x492cb3.73
mov esi, dword [ebp + 8]
push 7
push str.Restore
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne case.0x492cb3.73
add dword [esp + 0x14], 0xe
mov dword [esp + 0x30], 9
jmp case.0x492cb3.73
mov esi, dword [ebp + 8]
push 6
push str.Center
lea eax, [esi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x492c34
movzx esi, word [esi]
test esi, 0xffffff80
jne 0x492c07
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push 2
push esi
call eax
add esp, 8
test eax, eax
je 0x492c07
and esi, 0xffffffdf
cmp si, 0x58
jne 0x492c1f
add dword [esp + 0x14], 0xe
mov dword [esp + 0x24], htonl
jmp 0x492a86
add dword [esp + 0x14], 0xe
mov dword [esp + 0x38], htonl
jmp 0x492a86
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x492c57
add dword [esp + 0x14], 8
mov dword [esp + 0x30], eax
jmp 0x492a86
lea eax, [esp + 0x14]
add esi, 2
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstod]
add esp, 8
cmp dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x40]
je 0x492d26
movzx eax, word [esi]
mov dword [esp + 0x28], eax
test eax, 0xffffff80
jne 0x492ca0
push 2
push eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
call eax
add esp, 8
test eax, eax
mov eax, dword [esp + 0x28]
je 0x492ca0
and eax, 0xffffffdf
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x492cb3.73
movzx eax, byte [eax + 0x49386c]
jmp dword [eax*4 + 0x493858]
cvttsd2si eax, qword [esp + 0x40]
mov dword [esp + 0x24], eax
jmp case.0x492cb3.73
cvttsd2si eax, qword [esp + 0x40]
mov dword [esp + 0x38], eax
jmp case.0x492cb3.73
cmp byte [edi + 0xc8], 0
cvttsd2si eax, qword [esp + 0x40]
je 0x492cf6
push 0x60
push dword [0x4fcbf8]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x18], eax
jmp case.0x492cb3.73
cmp byte [edi + 0xc8], 0
cvttsd2si eax, qword [esp + 0x40]
je 0x492d1d
push 0x60
push dword [0x4fcbf8]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x1c], eax
jmp case.0x492cb3.73
mov dword [esp + 0x14], esi
push esi
push str.Invalid_option.
mov ecx, 0x4fcc10
call fcn.0044df00
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x37], 0
test eax, eax
je 0x492d79
cmp eax, 9
je 0x492d71
cmp eax, 4
jne 0x492d88
test esi, esi
jne 0x492d79
test edx, edx
je 0x492d88
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x37], 1
cmp byte [edi + 0xc3], 0
je 0x492dc4
xor esi, esi
cmp dword [edi + 0x10], esi
jbe 0x492dc4
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
mov eax, dword [edi + 0x18]
add eax, ecx
cmp byte [eax + 4], 0x13
jne 0x492db7
push eax
mov ecx, edi
call fcn.00498a90
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x40
mov dword [esp + 0x14], ecx
cmp esi, dword [edi + 0x10]
jb 0x492da0
cmp dword [edi + 0xcc], 0
jne 0x492e4c
push 0x1c
call fcn.004cb6f5
add esp, 4
mov dword [edi + 0xd0], eax
push 0x1c
call fcn.004cb6f5
mov dword [edi + 0xcc], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0xd0]
add esp, 4
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]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x493086
cmp byte [esp + 0x23], 0
je 0x492f7a
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ecx
cmp dword [edi + 0x10], ecx
jbe 0x492f3c
xor eax, eax
mov dword [esp + 0x14], eax
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x492f0b
cmp byte [esi + 6], 0xff
je 0x492eaf
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x492f03
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x492f03
lea eax, [esp + 0x60]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x64]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x68], edx
mov ecx, dword [esp + 0x1c]
cmovg edx, dword [esp + 0x68]
cmp dword [esp + 0x6c], ecx
mov dword [esp + 0x18], edx
cmovg ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
jmp 0x492f0b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 0x40
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
jb 0x492e91
test edx, edx
jle 0x492f31
add edx, dword [edi + 0x78]
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x492f3c
add ecx, dword [edi + 0x7c]
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x493086
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x493086
lea eax, [esp + 0x60]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
add dword [esp + 0x1c], eax
jmp 0x493086
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp edx, 0x80000000
je 0x492f96
cmp ecx, 0x80000000
jne 0x493086
cmp byte [edi + 0xc3], 0
je 0x49300a
cmp edx, 0x80000000
jne 0x492fb4
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x18], eax
cmp ecx, 0x80000000
jne 0x493086
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x493086
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x493086
lea eax, [esp + 0x60]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
add esi, eax
mov dword [esp + 0x1c], esi
jmp 0x493086
lea eax, [esp + 0x60]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x18], 0x80000000
jne 0x49304f
test dword [edi + 0x3c], 0x200000
je 0x493041
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x493041
push 0x14
call esi
mov edx, eax
jmp 0x493043
xor edx, edx
sub edx, dword [esp + 0x60]
add edx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x1c], 0x80000000
jne 0x493086
test dword [edi + 0x3c], 0x100000
je 0x493078
mov ecx, dword [edi + 0xd0]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x493078
push 3
call esi
mov ecx, eax
jmp 0x49307a
xor ecx, ecx
sub ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
cmp byte [edi + 0xc3], 0
je 0x4930f0
cmp byte [edi + 0xc0], 0
je 0x4930cb
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4930cb
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x4930be
push 0
push eax
mov ecx, edi
call fcn.00498290
mov ecx, dword [esp + 0x2c]
inc ecx
add esi, 0x40
mov dword [esp + 0x2c], ecx
cmp ecx, dword [edi + 0x10]
jb 0x4930a5
mov eax, dword [esp + 0x24]
mov ecx, closesocket
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x38], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x14], eax
jne 0x493696
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x493157
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [esp + 0x18], 1
test eax, eax
jne 0x49315f
mov dword [esp + 0x18], 0
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x58]
push esi
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
test esi, 0x100000
je 0x4931d2
mov eax, dword [edi + 0xd0]
mov ecx, dword [edi + 0x90]
add ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
jne 0x4931b1
mov eax, dword [edi + 0xd0]
mov ecx, dword [eax + 0xc]
jmp 0x4931b3
mov ecx, eax
mov eax, dword [edi + 0xd0]
inc ecx
push 0
mov dword [eax + 0x10], ecx
push dword [edi + 0xd0]
push 0
push dword [edi + 4]
call edx
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
test esi, 0x200000
je 0x49321d
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x7c]
add ecx, dword [edi + 0x94]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x3c]
cmp eax, 0x80000000
jne 0x493202
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax + 0xc]
jmp 0x493204
mov ecx, eax
mov eax, dword [edi + 0xcc]
inc ecx
push 0
mov dword [eax + 0x10], ecx
push dword [edi + 0xcc]
push 1
push dword [edi + 4]
call edx
test esi, 0x100000
je 0x49324a
mov ecx, dword [esp + 0x28]
cmp ecx, 0x80000000
je 0x49324a
mov eax, dword [edi + 0x94]
add eax, dword [edi + 0x7c]
cmp ecx, eax
jge 0x49324a
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x5c], eax
test esi, 0x200000
je 0x493277
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x80000000
je 0x493277
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
cmp ecx, eax
jge 0x493277
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x58], eax
cmp dword [esp + 0x18], 0
je 0x4932b9
movaps xmm0, xmmword [esp + 0x50]
lea eax, [esp + 0x80]
push eax
push 0
push 0x83
push dword [edi + 4]
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x9c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x84]
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4932f6
test esi, 0x40000000
je 0x4932f6
lea ecx, [esp + 0x90]
mov byte [esp + 0x23], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x49330f
push 0
lea eax, [esp + 0x94]
mov byte [esp + 0x27], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
sub eax, dword [esp + 0x90]
sub edx, dword [esp + 0x94]
cmp byte [edi + 0xc3], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
je 0x49337b
cmp byte [esp + 0x23], 0
jne 0x49337b
cmp dword [esp + 0x3c], 0x80000000
jne 0x493362
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
cmovg eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], 0x80000000
mov ecx, dword [esp + 0x18]
jne 0x49337f
cmp ecx, edx
cmovg ecx, edx
mov dword [esp + 0x18], ecx
jmp 0x49337f
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x24], 0x80000001
mov esi, dword [esp + 0x1c]
je 0x493399
cmp dword [esp + 0x38], 0x80000001
jne 0x4933cd
jmp 0x4933b9
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x90]
cmp dword [esp + 0x38], 0x80000001
mov dword [esp + 0x24], eax
jne 0x4933cd
mov edx, dword [esp + 0x40]
sub edx, ecx
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x94]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
sub eax, edx
cmp esi, eax
jne 0x49341f
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
sub eax, ecx
cmp dword [esp + 0x18], eax
jne 0x49341f
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
je 0x493408
cmp eax, edx
jne 0x49341f
mov eax, dword [esp + 0x38]
cmp eax, 0x80000000
je 0x4934a6
cmp eax, ecx
je 0x4934a6
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x493437
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 [0x4faa78]
xor ecx, ecx
mov dword [esp + 0x40], eax
test edx, edx
jle 0x493470
mov eax, dword [0x4faa74]
mov esi, dword [eax + ecx*4]
mov edx, dword [esp + 0x40]
cmp dword [esi + 4], edx
mov edx, dword [0x4faa78]
je 0x493524
inc ecx
cmp ecx, edx
jl 0x493455
push dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
cmp eax, 0x80000000
push dword [esp + 0x1c]
cmove eax, dword [esp + 0x7c]
push dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
cmove eax, dword [esp + 0x80]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xc3], 0
je 0x493696
lea eax, [esp + 0x80]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x40]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x8c]
mov esi, ecx
sub eax, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
sub esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x4c]
sub eax, esi
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x4935fb
mov dword [edi + 0xb0], ecx
jmp 0x493610
test esi, esi
je 0x493470
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x40], edx
cmp edx, dword [esi + 0x10]
jb 0x493572
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x28], eax
test eax, eax
je 0x493565
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x493569
mov edx, dword [esp + 0x40]
cmp edx, dword [esi + 0x10]
jae 0x493470
mov eax, dword [esp + 0x28]
mov ecx, edx
shl ecx, 6
add ecx, dword [esi + 0x18]
cmp dword [ecx], eax
jne 0x493470
cmp edx, 0x2af8
je 0x493470
test ecx, ecx
je 0x493470
cmp byte [edi + 0xc3], 0
jne 0x493470
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movlpd qword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
cmp ecx, 0x80000000
push dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmove ecx, eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x48]
cmp edx, 0x80000000
push dword [esp + 0x24]
cmove edx, eax
push ecx
push edx
jmp 0x49349d
cmp eax, 0x80000000
je 0x493610
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x493623
mov eax, dword [esp + 0x28]
jmp 0x493632
cmp eax, 0x80000000
je 0x493638
add eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0xb8]
cmp eax, 0x80000001
jne 0x49364d
mov dword [edi + 0xb8], ecx
jmp 0x49365e
cmp eax, 0x80000000
je 0x49365e
add eax, dword [esp + 0x2c]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xbc]
cmp eax, 0x80000001
jne 0x493671
mov eax, dword [esp + 0x28]
jmp 0x49367c
cmp eax, 0x80000000
je 0x493682
add eax, dword [esp + 0x3c]
mov dword [edi + 0xbc], eax
sub edx, dword [esp + 0x40]
sub esi, dword [esp + 0x44]
mov dword [edi + 0xa8], edx
mov dword [edi + 0xac], esi
cmp byte [esp + 0x37], 0
jne 0x4936ce
mov eax, dword [esp + 0x30]
cmp eax, 6
jne 0x4936c4
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x4936c0
push 0
push 0
push 6
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
mov eax, dword [esp + 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 8
ja case.0x4936e3.2
movzx eax, byte [eax + 0x493888]
jmp dword [eax*4 + 0x493880]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x4936e3.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x493712
mov ecx, esi
call fcn.004b5a80
cmp byte [edi + 0xc4], 0
je case.0x4936e3.2
mov byte [edi + 0xc4], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4937af
cmp byte [edi + 0xc0], 0
je case.0x4936e3.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x49376a
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x49376e
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [esp + 0x24]
cmp esi, dword [edi + 0x10]
jae case.0x4936e3.2
mov eax, dword [edi + 0x18]
mov ecx, esi
shl ecx, 6
add eax, ecx
mov dword [esp + 0x40], eax
cmp dword [eax], edx
jne case.0x4936e3.2
cmp esi, 0x2af8
je case.0x4936e3.2
test eax, eax
je case.0x4936e3.2
cmp byte [eax + 4], 0x13
jne case.0x4936e3.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x44]
mov ecx, edi
call fcn.00498290
jmp case.0x4936e3.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.004018d0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8