Function at 0x470100
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.ahk_autosize
push dword [edi]
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4703a8
push str.ahk_autosize
push dword [edi]
call dword [sym.imp.USER32.dll_RemovePropW]
mov cl, byte [edi + 7]
xor ebx, ebx
mov edi, SysReAllocString
mov edx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [esp + 0xf], cl
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
cmp dword [esi + 0x10], ebx
jbe 0x4701ac
xor edi, edi
nop word [eax + eax]
mov eax, dword [esi + 0x18]
cmp byte [edi + eax + 6], cl
jne 0x47019f
lea ecx, [esp + 0x48]
push ecx
push dword [edi + eax]
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x50]
mov edx, dword [sym.imp.USER32.dll_GetWindowRect]
cmovl ecx, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x54]
cmovl ecx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0xf]
inc ebx
add edi, 0x14
cmp ebx, dword [esi + 0x10]
jb 0x470160
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push dword [ebx]
call edx
mov ecx, dword [esp + 0x18]
test cl, 1
je 0x4701d5
cmp edi, 0x80000000
je 0x4701d5
mov eax, dword [esi + 0x78]
add eax, 4
add eax, edi
mov dword [esp + 0x30], eax
test cl, 2
je 0x4701f2
cmp edi, 0x80000000
je 0x4701f2
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 + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0xfffffffffffffff0
push dword [ebx]
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 0x470262
test al, 2
jne 0x470262
push 0
push 0
push 0x132c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
jmp 0x47026a
mov dword [esp + 0x18], 0
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebx]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x1c], 0
je 0x470341
push 0
push 0
push 0x132c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], eax
je 0x470341
lea eax, [esp + 0x38]
push eax
push 0
push 0x130a
push dword [ebx]
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 0x470305
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x10]
imul eax, edx
add ecx, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
jmp 0x47032a
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 ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
push 1
push dword [esp + 0x18]
push ecx
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebx]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x10]
mov dl, byte [esp + 0xf]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x18]
cmp byte [eax + ecx*4 - 0xe], dl
je 0x47035c
cmp edi, 0x80000000
jne 0x4703a8
mov eax, dword [esp + 0x28]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x30]
cmp dword [esi + 0x90], eax
jge 0x470396
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x34]
cmp dword [esi + 0x94], eax
jge 0x4703a8
mov dword [esi + 0x94], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4