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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
push str.ahk_autosize
push dword [ebx]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetPropA]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4673e7
push str.ahk_autosize
push dword [ebx]
call dword [sym.imp.USER32.dll_RemovePropA]
movzx edx, byte [ebx + 7]
xor edi, edi
mov ebp, SysReAllocString
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebp
cmp dword [esi + 0x10], edi
jbe 0x4671f5
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [esi + 0x18]
movzx eax, byte [ecx + ebx + 6]
cmp eax, edx
jne 0x4671e8
lea eax, [esp + 0x50]
push eax
push dword [ecx + ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
cmovl ebp, dword [esp + 0x58]
cmp edx, dword [esp + 0x5c]
cmovl edx, dword [esp + 0x5c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x10]
jb 0x4671b0
mov ebx, dword [esp + 0x64]
xor eax, eax
cmp ebp, 0x80000000
setne al
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
test cl, 1
je 0x467232
test eax, eax
je 0x467232
mov eax, dword [esi + 0x78]
add eax, 4
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
test cl, 2
je 0x46724b
test eax, eax
je 0x46724b
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x7c]
add ecx, 4
add eax, ecx
mov dword [esp + 0x3c], eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
sub edi, dword [esp + 0x34]
sub ebp, dword [esp + 0x30]
push 0xfffffffffffffff0
push dword [ebx]
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
mov dword [esp + 0x28], eax
and ecx, 0x80
mov dword [esp + 0x2c], ecx
neg ecx
sbb ecx, ecx
add ecx, 2
test dword [esp + 0x20], ecx
setne cl
mov byte [esp + 0x64], cl
test cl, cl
je 0x4672bc
test al, 2
jne 0x4672bc
push 0
push 0
push 0x132c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], eax
jmp 0x4672c4
mov dword [esp + 0x14], 0
push 1
push edi
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [ebx]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esp + 0x64], 0
je 0x467388
push 0
push 0
push 0x132c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp dword [esp + 0x14], edi
je 0x467384
lea eax, [esp + 0x40]
push eax
push 0
push 0x130a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
and ecx, 0x100
neg ecx
sbb ecx, ecx
and ecx, 3
cmp dword [esp + 0x2c], 0
je 0x467353
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
sub edi, dword [esp + 0x14]
add eax, ecx
imul eax, edi
mov edi, dword [esp + 0x1c]
add ebp, eax
mov eax, dword [esp + 0x30]
add eax, ebp
mov dword [esp + 0x38], eax
jmp 0x467371
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
sub edi, dword [esp + 0x14]
add eax, ecx
imul eax, edi
mov edi, dword [esp + 0x1c]
add edi, eax
lea eax, [edx + edi]
mov dword [esp + 0x3c], eax
push 1
push edi
push ebp
push edx
push dword [esp + 0x40]
push dword [ebx]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x467388
mov edi, dword [esp + 0x1c]
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 + 0x24]
je 0x4673a3
cmp dword [esp + 0x18], 0
jne 0x4673e7
mov eax, dword [esp + 0x30]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], edi
cmp dword [esi + 0x90], eax
jge 0x4673d5
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0x94], eax
jge 0x4673e7
mov dword [esi + 0x94], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4