Function at 0x465c80
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 0x465f07
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 0x465d15
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [esi + 0x18]
movzx eax, byte [ecx + ebx + 6]
cmp eax, edx
jne 0x465d08
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 0x465cd0
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 0x465d52
test eax, eax
je 0x465d52
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 0x465d6b
test eax, eax
je 0x465d6b
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 0x465ddc
test al, 2
jne 0x465ddc
push 0
push 0
push 0x132c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], eax
jmp 0x465de4
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 0x465ea8
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 0x465ea4
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 0x465e73
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 0x465e91
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 0x465ea8
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 0x465ec3
cmp dword [esp + 0x18], 0
jne 0x465f07
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 0x465ef5
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0x94], eax
jge 0x465f07
mov dword [esi + 0x94], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4