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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x54]
mov eax, dword [ebp]
push esi
push edi
push str.ahk_autosize
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
xor edi, edi
mov dword [esp + 0x14], ebx
cmp ebx, edi
je 0x46945b
mov ecx, dword [ebp]
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_RemovePropW]
movzx edx, byte [ebp + 7]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x18], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], edi
cmp dword [esi + 0x10], edi
jbe 0x46928a
xor ebx, ebx
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + ebx + 6]
cmp ecx, dword [esp + 0x18]
jne 0x46927d
mov eax, dword [eax + ebx]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], eax
jge 0x46926f
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x10], eax
jge 0x46927d
mov dword [esp + 0x10], eax
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x10]
jb 0x469244
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
test bl, 1
je 0x4692ad
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx + 4]
mov dword [esp + 0x28], edx
test bl, 2
je 0x4692c1
mov eax, dword [esi + 0x7c]
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [esi + 4]
push 2
lea eax, [esp + 0x24]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [ebp]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub edi, dword [esp + 0x20]
sub esi, dword [esp + 0x24]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
and eax, 0x80
mov dword [esp + 0x1c], eax
neg eax
sbb eax, eax
add eax, 2
test dword [esp + 0x14], eax
setne al
mov byte [esp + 0x5c], al
test al, al
je 0x46932f
test bl, 2
jne 0x46932f
mov edx, dword [ebp]
push 0
push 0
push 0x132c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
jmp 0x469337
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp]
push 1
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esp + 0x5c], 0
je 0x4693ff
mov eax, dword [ebp]
push 0
push 0
push 0x132c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x10], eax
je 0x4693ff
mov edx, dword [ebp]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x130a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
and ebx, 0x100
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [esp + 0x1c], 0
je 0x4693cf
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x10]
imul ebx, eax
add edi, ebx
lea eax, [edx + edi]
mov dword [esp + 0x28], eax
jmp 0x4693ef
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x10]
imul ebx, eax
add esi, ebx
lea eax, [ecx + esi]
mov dword [esp + 0x2c], eax
push 1
push esi
push edi
push ecx
mov ecx, dword [ebp]
push edx
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + edx*4 - 0xe]
cmp edx, dword [esp + 0x18]
jne 0x46945b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], esi
cmp dword [eax + 0x90], ecx
jge 0x469449
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0x94], ecx
jge 0x46945b
mov dword [eax + 0x94], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8