Function at 0x4aab40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb1d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5bf364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 8]
add edx, ecx
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x10]
add ecx, ebx
mov dword [ebp - 0x40], ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], eax
call fcn.004aa9c0
cmp dword [eax + 0x30], 0
jne 0x4aabba
call fcn.004aa9c0
mov dword [eax + 0x30], str.msctls_progress32
call fcn.004aa9c0
push dword [ebp - 0x20]
lea ecx, [edi + 0x20]
push ecx
push eax
call fcn.004a43d0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
movzx eax, ax
test ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, 0x56000000
cmove ebx, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x28], ebx
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4aac20
call fcn.0050eb36
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4aac20
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push eax
call fcn.0050ec38
cmp word [ebp - 0x30], 0
je 0x4aac0a
lea ebx, [edi + 8]
test ebx, ebx
je 0x4aad92
test edi, edi
je 0x4aad92
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 4], eax
mov dword [ebp - 0x4c], 0x5d7a08
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0
push 0x5d7a08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5d7a20]
mov dword [ebx + 8], eax
mov byte [ebp - 0x48], 1
mov dword [0x5d7a20], ebx
mov dword [ebp - 4], 0xffffffff
push 0x5d7a08
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x48], 0
test esi, esi
jne 0x4aaca4
test ecx, 0x40000000
cmovne esi, edi
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
sub eax, ebx
mov edx, dword [ebp - 0x40]
push 0
push dword [0x5c51e8]
push esi
push dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x3c]
sub eax, edx
push eax
mov eax, dword [ebp - 0x30]
push ebx
push edx
push ecx
push dword [ebp - 0x24]
movzx eax, ax
push eax
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4aac0a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4aad2e
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov esi, ebx
or esi, dword [ebp - 0x20]
cmp esi, ebx
je 0x4aad2e
push esi
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor esi, ebx
test esi, 0x20281
je 0x4aad2e
push 0x37
push 0
push 0
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0x3c]
mov ebx, dword [edi + 0x38]
cmp ebx, eax
mov esi, ebx
cmovle ebx, eax
cmovge esi, eax
movzx ecx, bx
shl ecx, 0x10
movzx eax, si
or ecx, eax
push ecx
push 0
push 0x401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x40]
cmp eax, esi
jl 0x4aad68
cmp eax, ebx
mov esi, eax
cmovg esi, ebx
push 0
push esi
push 0x402
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc0000005
call fcn.00403cc0
int3