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

Disassembly:
sub esp, 0x90
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov edi, edx
mov eax, dword [edi + 4]
test eax, eax
je 0x48583c
mov byte [edi + 0xc5], 1
cmp word [ecx], 0
je 0x484b53
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, connect
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x60], eax
test eax, eax
je 0x484b99
mov dword [esp + 0x28], 9
jmp 0x484bab
xor edx, edx
test esi, esi
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebp
cmp word [ebp], 0
je 0x484e2f
mov ebx, dword [sym.imp.MSVCR100.dll__wcsnicmp]
movzx esi, word [ebp]
test esi, 0xffffff80
jne 0x484bdf
push 2
push esi
call dword [sym.imp.MSVCR100.dll__isctype]
add esp, 8
test eax, eax
je 0x484bdf
and esi, 0xffffffdf
movzx eax, si
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x484bf5.10
movzx eax, byte [eax + 0x485874]
jmp dword [eax*4 + 0x485850]
add dword [esp + 0x10], 2
jmp case.0x484bf5.10
push 8
push str.AutoSize
push ebp
call ebx
add esp, 0xc
test eax, eax
jne case.0x484db5.73
add dword [esp + 0x10], 0x10
mov byte [esp + 0x17], 1
jmp case.0x484bf5.10
push 6
push str.Center
push ebp
call ebx
add esp, 0xc
test eax, eax
jne case.0x484db5.73
add dword [esp + 0x10], 0xc
mov eax, connect
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
jmp case.0x484bf5.10
push 8
push str.Minimize
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x484c79
add dword [esp + 0x10], 0x10
mov dword [esp + 0x28], 6
jmp case.0x484bf5.10
push 8
push str.Maximize
push ebp
call ebx
add esp, 0xc
test eax, eax
jne case.0x484db5.73
add dword [esp + 0x10], 0x10
mov dword [esp + 0x28], 3
jmp case.0x484bf5.10
push 2
push 0x4dc3c4
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x484cc3
add dword [esp + 0x10], 4
mov dword [esp + 0x28], 8
jmp case.0x484bf5.10
push 0xa
push str.NoActivate
push ebp
call ebx
add esp, 0xc
test eax, eax
jne case.0x484db5.73
add dword [esp + 0x10], 0x14
mov dword [esp + 0x28], 4
jmp case.0x484bf5.10
push 7
push str.Restore
push ebp
call ebx
add esp, 0xc
test eax, eax
jne case.0x484db5.73
add dword [esp + 0x10], 0xe
mov dword [esp + 0x28], 9
jmp case.0x484bf5.10
push 6
lea ecx, [ebp + 2]
push str.Center
push ecx
call ebx
add esp, 0xc
test eax, eax
jne case.0x484bf5.72
mov ax, word [ebp]
call fcn.00413020
cmp ax, 0x58
jne 0x484d46
add dword [esp + 0x10], 0xe
mov dword [esp + 0x2c], connect
jmp 0x484e20
add dword [esp + 0x10], 0xe
mov dword [esp + 0x20], connect
jmp 0x484e20
push 4
push str.Hide
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x484d77
add dword [esp + 0x10], 8
mov dword [esp + 0x28], eax
jmp 0x484e20
lea edx, [esp + 0x10]
push edx
lea ebx, [ebp + 2]
push ebx
call dword [sym.imp.MSVCR100.dll_wcstod]
add esp, 8
call fcn.004b9c20
mov esi, eax
cmp dword [esp + 0x10], ebx
je 0x485054
mov ax, word [ebp]
call fcn.00413020
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x484db5.73
movzx eax, byte [eax + 0x4858dc]
jmp dword [eax*4 + 0x4858c8]
mov dword [esp + 0x2c], esi
jmp case.0x484db5.73
mov dword [esp + 0x20], esi
jmp case.0x484db5.73
cmp byte [edi + 0xc8], 0
je 0x484de7
mov ecx, dword [0x4ea160]
push 0x60
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x1c], eax
jmp case.0x484db5.73
mov dword [esp + 0x1c], esi
jmp case.0x484db5.73
cmp byte [edi + 0xc8], 0
je 0x484e0c
mov edx, dword [0x4ea160]
push 0x60
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x18], eax
jmp case.0x484db5.73
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.MSVCR100.dll__wcsnicmp]
cmp dword [esp + 0x10], ebp
je 0x485058
mov ebp, dword [esp + 0x10]
cmp word [ebp], 0
jne 0x484bc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov byte [esp + 0x27], 0
test eax, eax
je 0x484e64
cmp eax, 9
je 0x484e56
cmp eax, 4
jne 0x484e74
cmp dword [esp + 0x34], 0
jne 0x484e64
cmp dword [esp + 0x60], 0
je 0x484e74
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x27], 1
cmp byte [edi + 0xc3], 0
je 0x484ea1
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x484ea1
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x484e98
push eax
push edi
call fcn.0048a7b0
inc ebp
add esi, 0x40
cmp ebp, dword [edi + 0x10]
jb 0x484e86
cmp dword [edi + 0xcc], 0
jne 0x484f33
mov esi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x1c
call esi
add esp, 4
push 0x1c
mov dword [edi + 0xd0], eax
call esi
mov dword [edi + 0xcc], eax
mov eax, dword [edi + 0xd0]
add esp, 4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov eax, dword [edi + 0xcc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [edi + 0xcc]
mov dword [ecx], 0x1c
mov edx, dword [edi + 0xd0]
mov dword [edx], 0x1c
mov ecx, dword [edi + 0xcc]
mov eax, 3
mov dword [ecx + 4], eax
mov edx, dword [edi + 0xd0]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
sete al
mov byte [esp + 0x33], al
test al, al
je 0x48517b
cmp byte [esp + 0x17], 0
je 0x485075
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x10], ebx
jbe 0x485015
mov dword [esp + 0x1c], ebx
jmp 0x484f80
mov esi, dword [edi + 0x18]
add esi, dword [esp + 0x1c]
cmp byte [esi + 4], 0x19
je 0x484fec
cmp byte [esi + 6], 0xff
je 0x484fa1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x484fec
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x484fec
mov ecx, dword [esi]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
push 2
lea edx, [esp + 0x54]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x58]
cmp eax, ebp
jle 0x484fde
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x18]
jle 0x484fec
mov dword [esp + 0x18], eax
add dword [esp + 0x1c], 0x40
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x484f80
mov dword [esp + 0x1c], ebp
test ebp, ebp
jle 0x485006
add ebp, dword [edi + 0x78]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x485015
add eax, dword [edi + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x48517b
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x48517b
mov edx, dword [edi + 8]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
add dword [esp + 0x18], eax
jmp 0x48517b
mov dword [esp + 0x10], ebp
push ebp
push str.Invalid_option.
mov ecx, 0x4ea1d0
call fcn.00449df0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
cmp ebx, 0x80000000
je 0x485091
cmp ebp, 0x80000000
jne 0x48517b
cmp byte [edi + 0xc3], 0
je 0x485106
cmp ebx, 0x80000000
jne 0x4850af
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x1c], eax
cmp ebp, 0x80000000
jne 0x48517b
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x18], esi
test eax, eax
je 0x48517b
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x48517b
mov edx, dword [edi + 8]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
add esi, eax
mov dword [esp + 0x18], esi
jmp 0x48517b
mov edx, dword [edi + 4]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp ebx, 0x80000000
jne 0x485148
test dword [edi + 0x3c], 0x200000
je 0x48513a
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jg 0x48513a
push 0x14
call esi
jmp 0x48513c
xor eax, eax
sub eax, dword [esp + 0x50]
add eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
cmp ebp, 0x80000000
jne 0x48517b
test dword [edi + 0x3c], 0x100000
je 0x48516d
mov eax, dword [edi + 0xd0]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 0xc]
jg 0x48516d
push 3
call esi
jmp 0x48516f
xor eax, eax
sub eax, dword [esp + 0x54]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
cmp byte [edi + 0xc3], 0
je 0x4851d3
cmp byte [edi + 0xc0], 0
je 0x4851b2
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x4851b2
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x4851a9
push 0
push eax
call fcn.00489fb0
inc ebp
add esi, 0x40
cmp ebp, dword [edi + 0x10]
jb 0x485196
mov eax, connect
cmp dword [esp + 0x2c], eax
jne 0x4851c5
mov dword [esp + 0x2c], connect
cmp dword [esp + 0x20], eax
jne 0x4851d3
mov dword [esp + 0x20], connect
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x33], 0
mov dword [esp + 0x34], eax
je 0x485739
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff0
xor ebx, ebx
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [edi + 4]
mov esi, eax
push edx
mov dword [esp + 0x64], esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x485239
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x485239
lea ebp, [ebx + 1]
jmp 0x48523b
xor ebp, ebp
mov ecx, dword [edi + 4]
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push ebp
push esi
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
and esi, 0x100000
mov ebp, dword [sym.imp.USER32.dll_SetScrollInfo]
je 0x4852a6
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov ecx, dword [edi + 0xd0]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x48]
cmp eax, 0x80000000
jne 0x48528d
mov edx, dword [edi + 0xd0]
mov eax, dword [edx + 0xc]
mov ecx, dword [edi + 0xd0]
inc eax
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 0xd0]
mov eax, dword [edi + 4]
push ebx
push edx
push ebx
push eax
call ebp
mov ebx, dword [esp + 0x60]
and ebx, 0x200000
je 0x4852f3
mov ecx, dword [edi + 0x94]
add ecx, dword [edi + 0x7c]
mov eax, dword [esp + 0x4c]
mov edx, dword [edi + 0xcc]
mov dword [edx + 0xc], ecx
cmp eax, 0x80000000
jne 0x4852d8
mov eax, dword [edi + 0xcc]
mov eax, dword [eax + 0xc]
mov ecx, dword [edi + 0xcc]
inc eax
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 0xcc]
mov eax, dword [edi + 4]
push 0
push edx
push 1
push eax
call ebp
test esi, esi
je 0x485323
mov eax, dword [esp + 0x48]
cmp eax, 0x80000000
je 0x485323
mov ecx, dword [edi + 0x94]
add ecx, dword [edi + 0x7c]
cmp eax, ecx
jge 0x485323
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x485327
mov ecx, dword [esp + 0x44]
test ebx, ebx
je 0x48535b
mov eax, dword [esp + 0x4c]
cmp eax, 0x80000000
je 0x48535b
mov edx, dword [edi + 0x90]
add edx, dword [edi + 0x78]
cmp eax, edx
jge 0x48535b
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add edx, eax
mov dword [esp + 0x40], edx
jmp 0x48535f
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x1c], 0
je 0x4853b5
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x70]
push ecx
push 0
mov dword [esp + 0x80], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
push 0x83
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x44]
add ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
sub edx, dword [esp + 0x38]
sub ecx, dword [esp + 0x3c]
mov eax, dword [edi + 0xc]
mov ebp, edx
mov esi, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
test eax, eax
je 0x4853f0
test dword [esp + 0x60], 0x40000000
je 0x4853f0
lea ecx, [esp + 0x90]
push ecx
push eax
mov byte [esp + 0x1f], 1
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x485409
push 0
lea edx, [esp + 0x94]
push edx
push 0
push 0x30
mov byte [esp + 0x27], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
sub ecx, dword [esp + 0x94]
sub eax, ebx
cmp byte [edi + 0xc3], 0
je 0x48545a
cmp byte [esp + 0x17], 0
jne 0x48545a
mov edx, connect
cmp dword [esp + 0x4c], edx
jne 0x48544c
cmp ebp, eax
jle 0x48544c
mov ebp, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x48], edx
jne 0x48545a
cmp esi, ecx
jle 0x48545a
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x2c]
cmp esi, 0x80000001
jne 0x485475
sub eax, ebp
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ebx
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x20]
cmp ebx, 0x80000001
jne 0x485499
mov eax, ecx
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, dword [esp + 0x94]
mov dword [esp + 0x20], ebx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
sub edx, eax
cmp ebp, edx
jne 0x4854f7
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
sub edx, ecx
cmp dword [esp + 0x18], edx
jne 0x4854f7
cmp esi, 0x80000000
je 0x4854e1
cmp esi, eax
jne 0x4854f7
cmp ebx, 0x80000000
je 0x485581
cmp dword [esp + 0x20], ecx
je 0x485581
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x485511
mov ecx, dword [edi + 4]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x4e8688]
xor ecx, ecx
test edx, edx
jle 0x485541
mov esi, dword [0x4e8094]
lea ecx, [ecx]
mov ebx, dword [esi + ecx*4]
cmp dword [ebx + 4], eax
je 0x4855e7
inc ecx
cmp ecx, edx
jl 0x485530
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
jne 0x485554
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
jne 0x485566
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xc3], 0
je 0x485739
mov edx, dword [edi + 4]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
sub eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x78]
mov esi, dword [edi + 0xb0]
mov edx, eax
mov ebp, ecx
sub ebp, dword [esp + 0x7c]
sub edx, ebx
cmp esi, 0x80000001
jne 0x4856a1
mov dword [edi + 0xb0], eax
jmp 0x4856b1
test ebx, ebx
je 0x485541
mov ebp, dword [edi + 4]
push ebp
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jb 0x485621
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x485618
push ebp
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [ebx + 0x10]
jae 0x485541
mov eax, esi
shl eax, 6
add eax, dword [ebx + 0x18]
cmp dword [eax], ebp
jne 0x485541
cmp esi, 0x2af8
je 0x485541
test eax, eax
je 0x485541
cmp byte [edi + 0xc3], 0
jne 0x485541
xor eax, eax
lea edx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
jne 0x485682
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
jne 0x485566
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x60]
jmp 0x485566
cmp esi, 0x80000000
je 0x4856b1
add esi, edx
mov dword [edi + 0xb0], esi
mov esi, dword [edi + 0xb4]
cmp esi, 0x80000001
jne 0x4856c7
mov dword [edi + 0xb4], ecx
jmp 0x4856d7
cmp esi, 0x80000000
je 0x4856d7
add esi, ebp
mov dword [edi + 0xb4], esi
mov esi, dword [edi + 0xb8]
cmp esi, 0x80000001
jne 0x4856ed
mov dword [edi + 0xb8], eax
jmp 0x4856fd
cmp esi, 0x80000000
je 0x4856fd
add esi, edx
mov dword [edi + 0xb8], esi
mov eax, dword [edi + 0xbc]
cmp eax, 0x80000001
jne 0x485712
mov dword [edi + 0xbc], ecx
jmp 0x485721
cmp eax, 0x80000000
je 0x485721
add eax, ebp
mov dword [edi + 0xbc], eax
sub ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], eax
cmp byte [esp + 0x27], 0
jne 0x48574f
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x28]
dec eax
cmp eax, 8
ja case.0x485764.2
movzx ecx, byte [eax + 0x4858f8]
jmp dword [ecx*4 + 0x4858f0]
mov edx, dword [edi + 4]
push 2
push edx
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x485764.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x485794
mov eax, esi
call fcn.004a36b0
cmp byte [edi + 0xc4], 0
je case.0x485764.2
mov byte [edi + 0xc4], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, eax
test ebp, ebp
je 0x485818
cmp byte [edi + 0xc0], 0
je case.0x485764.2
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x4857e6
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x4857e1
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jae case.0x485764.2
mov ebx, esi
shl ebx, 6
add ebx, dword [edi + 0x18]
cmp dword [ebx], ebp
jne case.0x485764.2
cmp esi, 0x2af8
je case.0x485764.2
test ebx, ebx
je case.0x485764.2
cmp byte [ebx + 4], 0x13
jne case.0x485764.2
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push ebx
call fcn.00489fb0
jmp case.0x485764.2
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xc3], 0
mov byte [edi + 0xc5], 0
call fcn.00401510
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret 4