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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4688a0
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0xbd], 1
cmp word [ecx], 0
je 0x467e13
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi + 4]
mov dword [esp + 0x2c], closesocket
mov dword [esp + 0x38], closesocket
mov dword [esp + 0x24], closesocket
mov dword [esp + 0x20], closesocket
mov byte [esp + 0x1f], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov esi, eax
mov dword [esp + 0x60], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edx, eax
mov dword [esp + 0x3c], edx
test edx, edx
je 0x467e61
mov ecx, 9
jmp 0x467e6f
xor ecx, ecx
test esi, esi
setne cl
lea ecx, [ecx*4 + 1]
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
cmp word [eax], 0
je 0x467ee1
movzx esi, word [eax]
test esi, 0xffffff80
jne 0x467e9d
push 2
push esi
call fcn.00498ea3
add esp, 8
test eax, eax
je 0x467e9d
and esi, 0xffffffdf
movzx eax, si
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x467eaf.10
movzx eax, byte [eax + 0x4688d4]
jmp dword [eax*4 + 0x4688b0]
add dword [esp + 0x14], 2
mov esi, dword [ebp + 8]
cmp dword [esp + 0x14], esi
je 0x46827b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ebp + 8], eax
cmp word [eax], 0
jne 0x467e80
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x2f], 0
test ecx, ecx
je 0x467f0c
cmp ecx, 9
je 0x467f04
cmp ecx, 4
jne 0x467f1b
test esi, esi
jne 0x467f0c
test edx, edx
je 0x467f1b
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x2f], 1
cmp byte [edi + 0xbb], 0
je 0x467f55
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x10], ecx
jbe 0x467f55
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x467f48
push eax
mov ecx, edi
call fcn.0046c4b0
mov ecx, dword [esp + 0x24]
inc ecx
add esi, 0x14
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x10]
jb 0x467f31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
sete al
mov byte [esp + 0x3b], al
test al, al
je 0x4683ce
cmp byte [esp + 0x1b], 0
je 0x46830c
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4682d2
xor eax, eax
mov dword [esp + 0x14], eax
nop
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x46829b
cmp byte [esi + 6], 0xff
je 0x467fc6
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x468293
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x468293
lea eax, [esp + 0x60]
push eax
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
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 + 0x20]
cmp dword [esp + 0x68], edx
mov ecx, dword [esp + 0x1c]
cmovg edx, dword [esp + 0x68]
cmp dword [esp + 0x6c], ecx
mov dword [esp + 0x20], edx
cmovg ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
jmp 0x4682a1
mov esi, dword [ebp + 8]
push 8
push str.AutoSize
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne case.0x468224.73
add dword [esp + 0x14], 0x10
mov byte [esp + 0x1b], 1
jmp case.0x468224.73
mov esi, dword [ebp + 8]
push 6
push str.Center
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne case.0x468224.73
add dword [esp + 0x14], 0xc
mov dword [esp + 0x28], htonl
mov dword [esp + 0x34], htonl
jmp case.0x468224.73
mov esi, dword [ebp + 8]
push 8
push str.Minimize
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x4680ab
add dword [esp + 0x14], 0x10
mov dword [esp + 0x30], 6
jmp case.0x468224.73
push 8
push str.Maximize
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne case.0x468224.73
add dword [esp + 0x14], 0x10
mov dword [esp + 0x30], 3
jmp case.0x468224.73
mov esi, dword [ebp + 8]
push 2
push 0x4d221c
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x4680fe
add dword [esp + 0x14], 4
mov dword [esp + 0x30], 8
jmp case.0x468224.73
push 0xa
push str.NoActivate
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne case.0x468224.73
add dword [esp + 0x14], 0x14
mov dword [esp + 0x30], 4
jmp case.0x468224.73
mov esi, dword [ebp + 8]
push 7
push str.Restore
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne case.0x468224.73
add dword [esp + 0x14], 0xe
mov dword [esp + 0x30], 9
jmp case.0x468224.73
mov esi, dword [ebp + 8]
push 6
push str.Center
lea eax, [esi + 2]
push eax
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x4681a4
mov cx, word [esi]
call fcn.0040e460
cmp ax, 0x58
jne 0x46818f
add dword [esp + 0x14], 0xe
mov dword [esp + 0x28], htonl
jmp 0x467ec8
add dword [esp + 0x14], 0xe
mov dword [esp + 0x34], htonl
jmp 0x467ec8
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call fcn.00495d63
add esp, 0xc
test eax, eax
jne 0x4681c8
add dword [esp + 0x14], 8
xor ecx, ecx
mov dword [esp + 0x30], ecx
jmp 0x467ecc
lea eax, [esp + 0x14]
add esi, 2
push eax
push esi
call fcn.0049ede2
add esp, 8
cmp dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x40]
je 0x468277
movzx eax, word [esi]
mov dword [esp + 0x24], eax
test eax, 0xffffff80
jne 0x46820e
push 2
push eax
call fcn.00498ea3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
je 0x46820e
and eax, 0xffffffdf
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x468224.73
movzx eax, byte [eax + 0x46893c]
jmp dword [eax*4 + 0x468928]
cvttsd2si eax, qword [esp + 0x40]
mov dword [esp + 0x28], eax
jmp case.0x468224.73
cvttsd2si eax, qword [esp + 0x40]
mov dword [esp + 0x34], eax
jmp case.0x468224.73
cvttsd2si eax, qword [esp + 0x40]
mov ecx, edi
push eax
call fcn.00437100
mov dword [esp + 0x20], eax
jmp case.0x468224.73
cvttsd2si eax, qword [esp + 0x40]
mov ecx, edi
push eax
call fcn.00437100
mov dword [esp + 0x1c], eax
jmp case.0x468224.73
mov dword [esp + 0x14], esi
push esi
push str.Invalid_option.
mov ecx, 0x4de0d0
call fcn.004354a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0x14
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
jb 0x467fa0
test edx, edx
jle 0x4682c7
add edx, dword [edi + 0x78]
mov dword [esp + 0x20], edx
test ecx, ecx
jle 0x4682d2
add ecx, dword [edi + 0x7c]
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x4683ce
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4683ce
lea eax, [esp + 0x60]
push eax
push dword [edi + 8]
call esi
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
add dword [esp + 0x1c], eax
jmp 0x4683ce
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp edx, 0x80000000
je 0x468328
cmp ecx, 0x80000000
jne 0x4683ce
cmp byte [edi + 0xbb], 0
je 0x468394
cmp edx, 0x80000000
jne 0x468346
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x20], eax
cmp ecx, 0x80000000
jne 0x4683ce
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x4683ce
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4683ce
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 0x4683ce
lea eax, [esp + 0x60]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x20], 0x80000000
jne 0x4683b8
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], 0x80000000
jne 0x4683ce
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
cmp byte [edi + 0xbb], 0
je 0x46843b
cmp byte [edi + 0xb8], 0
je 0x468416
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x10], ecx
jbe 0x468416
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x468409
push 0
push eax
mov ecx, edi
call fcn.0046bd30
mov ecx, dword [esp + 0x24]
inc ecx
add esi, 0x14
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi + 0x10]
jb 0x4683f0
mov eax, dword [esp + 0x28]
mov ecx, closesocket
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x34], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x3b], 0
mov dword [esp + 0x24], eax
je 0x468789
mov eax, dword [esp + 0x20]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
push 0xffffffffffffffec
push dword [edi + 4]
sbb esi, esi
neg esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, 0x100000
je 0x4684d0
push 3
call ecx
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, 0x200000
je 0x4684df
push 2
call ecx
add dword [esp + 0x48], eax
test esi, esi
je 0x468518
movaps xmm0, xmmword [esp + 0x40]
lea eax, [esp + 0x70]
push eax
push 0
push 0x83
push dword [edi + 4]
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x8c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x74]
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x468553
test dword [esp + 0x1c], 0x40000000
je 0x468553
lea ecx, [esp + 0x80]
mov byte [esp + 0x1b], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x46856c
push 0
lea eax, [esp + 0x84]
mov byte [esp + 0x1f], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
sub edx, dword [esp + 0x80]
sub ecx, dword [esp + 0x84]
cmp byte [edi + 0xbb], 0
je 0x4685be
cmp byte [esp + 0x1b], 0
jne 0x4685be
cmp dword [esp + 0x3c], 0x80000000
jne 0x4685af
mov eax, dword [esp + 0x20]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x5c], 0x80000000
jne 0x4685be
cmp esi, ecx
cmovg esi, ecx
cmp dword [esp + 0x28], 0x80000001
jne 0x4685de
sub edx, dword [esp + 0x20]
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x34], 0x80000001
jne 0x4685fc
sub ecx, esi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x84]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x90]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
sub eax, edx
cmp dword [esp + 0x20], eax
jne 0x468655
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
sub eax, ecx
cmp esi, eax
jne 0x468655
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
je 0x468646
cmp eax, edx
jne 0x468655
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
je 0x4686a3
cmp eax, ecx
je 0x4686a3
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x46866d
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp eax, 0x80000000
push esi
push dword [esp + 0x28]
cmove eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x38]
cmp eax, 0x80000000
cmove eax, dword [esp + 0xa0]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xbb], 0
je 0x468789
lea eax, [esp + 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xa0]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x7c]
sub edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, edx
sub ecx, dword [esp + 0x70]
sub eax, dword [esp + 0xac]
mov esi, ecx
sub esi, dword [esp + 0xa8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x46870a
mov dword [edi + 0xa8], ecx
jmp 0x468719
cmp eax, 0x80000000
je 0x468719
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x46872e
mov dword [edi + 0xac], edx
jmp 0x46873f
cmp eax, 0x80000000
je 0x46873f
add eax, dword [esp + 0x24]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x468754
mov dword [edi + 0xb0], ecx
jmp 0x468763
cmp eax, 0x80000000
je 0x468763
add eax, esi
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x468778
mov dword [edi + 0xb4], edx
jmp 0x468789
cmp eax, 0x80000000
je 0x468789
add eax, dword [esp + 0x24]
mov dword [edi + 0xb4], eax
cmp byte [esp + 0x2f], 0
mov esi, dword [esp + 0x30]
jne 0x46879e
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi - 1]
cmp eax, 8
ja case.0x4687b1.2
movzx eax, byte [eax + 0x468958]
jmp dword [eax*4 + 0x468950]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x4687b1.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x4687e0
mov ecx, esi
call fcn.0047c150
cmp byte [edi + 0xbc], 0
je case.0x4687b1.2
mov byte [edi + 0xbc], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x28], eax
test eax, eax
je 0x46887c
cmp byte [edi + 0xb8], 0
je case.0x4687b1.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x468838
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x46883c
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [esp + 0x28]
cmp esi, dword [edi + 0x10]
jae case.0x4687b1.2
mov eax, dword [edi + 0x18]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x3c], eax
cmp dword [eax], edx
jne case.0x4687b1.2
cmp esi, 0x2af8
je case.0x4687b1.2
test eax, eax
je case.0x4687b1.2
cmp byte [eax + 4], 0x13
jne case.0x4687b1.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x40]
mov ecx, edi
call fcn.0046bd30
jmp case.0x4687b1.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, 1
mov byte [edi + 0xbb], 0
or ecx, 0xffffffff
mov byte [edi + 0xbd], 0
call fcn.004016e0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8