Function at 0x4673b0
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_GetPropA]
mov ebx, eax
xor edi, edi
mov dword [esp + 0x14], ebx
cmp ebx, edi
je 0x46761b
mov ecx, dword [ebp]
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_RemovePropA]
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 0x46744a
xor ebx, ebx
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + ebx + 6]
cmp ecx, dword [esp + 0x18]
jne 0x46743d
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 0x46742f
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x10], eax
jge 0x46743d
mov dword [esp + 0x10], eax
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x10]
jb 0x467404
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 0x46746d
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx + 4]
mov dword [esp + 0x28], edx
test bl, 2
je 0x467481
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_GetWindowLongA]
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 0x4674ef
test bl, 2
jne 0x4674ef
mov edx, dword [ebp]
push 0
push 0
push 0x132c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
jmp 0x4674f7
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 0x4675bf
mov eax, dword [ebp]
push 0
push 0
push 0x132c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x10], eax
je 0x4675bf
mov edx, dword [ebp]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x130a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
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 0x46758f
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 0x4675af
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 0x46761b
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 0x467609
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0x94], ecx
jge 0x46761b
mov dword [eax + 0x94], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8