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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
mov ebp, dword [esp + 0x54]
push esi
push str.ahk_autosize
mov esi, ecx
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b73a9
push ebx
push edi
push str.ahk_autosize
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_RemovePropW]
mov cl, byte [ebp + 0x4f]
xor edi, edi
mov ebx, connect
mov edx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x78], edi
jbe 0x4b719f
nop dword [eax]
mov eax, dword [esi + 0x48]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x4e], cl
jne 0x4b7199
lea ecx, [esp + 0x48]
push ecx
push dword [eax + 0x34]
call edx
cmp ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
cmovl ebx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x54]
mov edx, dword [sym.imp.USER32.dll_GetWindowRect]
cmovl ecx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov cl, byte [esp + 0x13]
inc edi
cmp edi, dword [esi + 0x78]
jb 0x4b7160
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0x34]
call edx
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x4b71c9
cmp ebx, 0x80000000
je 0x4b71c9
mov eax, dword [esi + 0x98]
add eax, 4
add eax, ebx
mov dword [esp + 0x30], eax
test cl, 2
je 0x4b71e9
cmp ebx, 0x80000000
je 0x4b71e9
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x9c]
add ecx, 4
add eax, ecx
mov dword [esp + 0x34], eax
push 2
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x38]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sub edi, dword [esp + 0x28]
push 0xfffffffffffffff0
push dword [ebp + 0x34]
mov dword [esp + 0x1c], 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 + 0x1c], ecx
je 0x4b726f
test al, 2
jne 0x4b726f
push 0
push 0
push 0x132c
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
push edi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4b729a
push 1
push dword [esp + 0x18]
push edi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
je 0x4b7344
push 0
push 0
push 0x132c
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], eax
je 0x4b7344
lea eax, [esp + 0x38]
push eax
push 0
push 0x130a
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 0x100
neg ecx
sbb ecx, ecx
sub edx, dword [esp + 0x18]
and ecx, 3
cmp dword [esp + 0x24], 0
je 0x4b730e
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x14]
imul eax, edx
add edi, eax
mov eax, dword [esp + 0x28]
add eax, edi
mov dword [esp + 0x30], eax
jmp 0x4b732f
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x14]
imul eax, edx
add ecx, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
push 1
push ecx
push edi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebp + 0x34]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4 - 4]
mov cl, byte [esp + 0x13]
cmp byte [eax + 0x4e], cl
je 0x4b735f
cmp ebx, 0x80000000
jne 0x4b73a7
mov eax, dword [esp + 0x28]
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xa8], edi
cmp dword [esi + 0xb0], eax
jge 0x4b7395
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x34]
cmp dword [esi + 0xb4], eax
jge 0x4b73a7
mov dword [esi + 0xb4], eax
pop edi
pop ebx
mov ecx, dword [esp + 0x50]
pop esi
pop ebp
xor ecx, esp
call fcn.004ebadf
add esp, 0x4c
ret 4