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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.exk_autosize
push dword [edi]
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46c759
push str.exk_autosize
push dword [edi]
call dword [sym.imp.USER32.dll_RemovePropW]
movzx edx, byte [edi + 7]
mov ebx, closesocket
xor edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x10], edi
jbe 0x46c552
xor ebx, ebx
mov ecx, dword [esi + 0x18]
movzx eax, byte [ecx + ebx + 6]
cmp eax, edx
jne 0x46c545
lea eax, [esp + 0x48]
push eax
push dword [ecx + ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
cmovl ecx, dword [esp + 0x50]
cmp edx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
cmovl edx, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x10]
jb 0x46c505
mov ebx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x46c57f
cmp ebx, 0x80000000
je 0x46c57f
mov eax, dword [esi + 0x78]
add eax, 4
add eax, ebx
mov dword [esp + 0x30], eax
test cl, 2
je 0x46c59c
cmp ebx, 0x80000000
je 0x46c59c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
add ecx, 4
add eax, ecx
mov dword [esp + 0x34], eax
push 2
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0xfffffffffffffff0
push dword [edi]
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov dword [esp + 0x20], eax
and ecx, 0x80
mov dword [esp + 0x24], ecx
neg ecx
sbb ecx, ecx
add ecx, 2
and ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
je 0x46c60c
test al, 2
jne 0x46c60c
push 0
push 0
push 0x132c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], eax
jmp 0x46c614
mov dword [esp + 0x14], 0
push 1
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x18], 0
je 0x46c6f1
push 0
push 0
push 0x132c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
je 0x46c6f1
lea eax, [esp + 0x38]
push eax
push 0
push 0x130a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
and ecx, 0x100
neg ecx
sbb ecx, ecx
and ecx, 3
cmp dword [esp + 0x24], 0
je 0x46c6b3
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
imul eax, ecx
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], eax
jmp 0x46c6dd
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
imul eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [edx + ecx]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], eax
push 1
push dword [esp + 0x14]
push ecx
push edx
push dword [esp + 0x38]
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + ecx*4 - 0xe]
cmp eax, dword [esp + 0x1c]
je 0x46c70d
cmp ebx, 0x80000000
jne 0x46c759
mov eax, dword [esp + 0x28]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x30]
cmp dword [esi + 0x90], eax
jge 0x46c747
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x34]
cmp dword [esi + 0x94], eax
jge 0x46c759
mov dword [esi + 0x94], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4