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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp]
push esi
push edi
push str.ahk_autosize
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46b2f4
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 + 0x60]
xor ebx, ebx
mov edi, SysReAllocString
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], ebx
jbe 0x46b107
mov dword [esp + 0x64], ebx
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x64]
movzx edx, byte [eax + 6]
cmp edx, dword [esp + 0x1c]
jne 0x46b0fc
mov edx, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x50]
cmp edi, eax
jge 0x46b0ee
mov edi, eax
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x14], eax
jge 0x46b0fc
mov dword [esp + 0x14], eax
add dword [esp + 0x64], 0x14
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x46b0c5
mov ecx, dword [ebp]
xor ebx, ebx
cmp edi, 0x80000000
setne bl
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov al, byte [esp + 0x18]
test al, 1
je 0x46b13c
test ebx, ebx
je 0x46b13c
mov edx, dword [esi + 0x78]
lea ecx, [edx + edi + 4]
mov dword [esp + 0x30], ecx
test al, 2
je 0x46b153
test ebx, ebx
je 0x46b153
mov edx, dword [esi + 0x7c]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 4]
push 2
lea edx, [esp + 0x2c]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub edi, dword [esp + 0x28]
sub esi, dword [esp + 0x2c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
and eax, 0x80
mov dword [esp + 0x20], eax
neg eax
sbb eax, eax
add eax, 2
test dword [esp + 0x18], eax
setne al
mov byte [esp + 0x64], al
test al, al
je 0x46b1c1
test bl, 2
jne 0x46b1c1
mov eax, dword [ebp]
push 0
push 0
push 0x132c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], eax
jmp 0x46b1c9
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
push 1
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esp + 0x64], 0
je 0x46b291
mov ecx, dword [ebp]
push 0
push 0
push 0x132c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x64], eax
cmp dword [esp + 0x14], eax
je 0x46b291
mov eax, dword [ebp]
lea edx, [esp + 0x38]
push edx
push 0
push 0x130a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
and ebx, 0x100
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [esp + 0x20], 0
je 0x46b261
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add edi, ebx
lea eax, [edx + edi]
mov dword [esp + 0x30], eax
jmp 0x46b281
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add esi, ebx
lea eax, [ecx + esi]
mov dword [esp + 0x34], 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 + 0x60]
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 + 0x1c]
je 0x46b2b0
cmp dword [esp + 0x24], 0
jne 0x46b2f4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], esi
cmp dword [eax + 0x90], ecx
jge 0x46b2e2
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x34]
cmp dword [eax + 0x94], ecx
jge 0x46b2f4
mov dword [eax + 0x94], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8