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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x667710]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push 3
pop ecx
xor edi, edi
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0x90]
mov edx, ecx
cmp eax, ecx
mov dword [esp + 0x10], edx
cmovl eax, ecx
test byte [ebx + 0x78], 1
mov dword [esp + 0x14], eax
je 0x4901e3
mov ecx, dword [ebx + 0x80]
add ecx, dword [ebx + 0x88]
push edx
pop edi
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], edi
lea eax, [ecx + 3]
mov dword [ebx + 0xa8], edi
mov edi, dword [esp + 0x14]
mov dword [ebx + 0xac], eax
lea eax, [ecx + edi]
add edx, eax
add edi, ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x68]
shl eax, 4
push eax
push dword [ebx + 0x9c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebx + 0x9c], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x68], eax
jle 0x4902bb
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x80]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, dword [ebx + 0x7c]
push eax
mov eax, dword [ebx + 0x9c]
add eax, dword [esp + 0x14]
push ecx
push dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0x8c]
add eax, dword [ebx + 0x7c]
add dword [esp + 0x18], eax
add eax, esi
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
cmovne eax, esi
mov esi, eax
mov eax, dword [ebx + 0x68]
dec eax
cmp ecx, eax
jge 0x4902a0
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x10]
cdq
idiv dword [ebx + 0x94]
test edx, edx
jne 0x4902a4
mov eax, dword [ebx + 0x80]
add eax, dword [ebx + 0x90]
add ecx, eax
mov dword [esp + 0x18], 3
add edi, eax
mov dword [esp + 0x10], ecx
inc dword [esp + 0x1c]
jmp 0x4902a4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], 0x10
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [ebx + 0x68]
jl 0x490220
mov ecx, dword [ebx + 0x80]
add edi, ecx
mov eax, dword [esp + 0x10]
sub esi, dword [ebx + 0x8c]
add eax, ecx
test byte [ebx + 0x78], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
je 0x4902e7
add dword [ebx + 0xa8], esi
test byte [ebx + 0x78], 2
je 0x49033d
mov edx, dword [ebx + 0x88]
lea edi, [ebx + 0xb0]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], 3
lea ecx, [ecx + eax*2]
lea eax, [esi + 3]
add ecx, 2
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x24]
mov dword [esp + 0x28], ecx
lea eax, [ecx + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
inc eax
movsd dword es:[edi], dword [esi]
lea eax, [edx + eax*2]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add edi, eax
add edi, dword [ebx + 0x90]
lea eax, [esp + 0x64]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x64]
add eax, 6
add eax, esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
add eax, 6
add eax, edi
lea edi, [ebx + 4]
push 0xffffffffffffffec
push dword [edi]
mov dword [esp + 0x78], eax
call esi
push eax
push 0
push 0xfffffffffffffff0
push dword [edi]
call esi
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x12
lea eax, [esp + 0x68]
mov ecx, edi
push eax
push 0
call fcn.00403895
test byte [ebx + 0x78], 4
je 0x49042c
push dword [ebx + 0xcc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49042c
push 0x30
pop esi
push esi
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004e0bc0
mov eax, dword [edi]
add esp, 0xc
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x68], eax
jle 0x49042c
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov esi, dword [ebx + 0x9c]
lea edi, [esp + 0x44]
add esi, ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
push 0
movsd dword es:[edi], dword [esi]
push 0x434
push dword [ebx + 0xcc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc eax
add ecx, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
cmp eax, dword [ebx + 0x68]
jl 0x4903e7
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da623
mov esp, ebp
pop ebp
ret