Function at 0x46bdc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x58569c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x58], edi
mov esi, ecx
mov dword [edi], eax
mov dword [ebp - 4], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xff0000
mov ecx, dword [esi + 8]
cmp ecx, dword [esi]
je 0x46bfb1
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 4]
je 0x46bfb1
call fcn.004c9130
test al, al
je 0x46be84
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x50]
push ecx
push 2
mov dword [ebp - 0x4c], eax
push esi
lea eax, [edi + 0x30]
push ebx
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], eax
call dword [sym.imp.UxTheme.dll_BeginBufferedPaint]
mov dword [edi + 0x28], eax
test eax, eax
je 0x46bfb1
lea ecx, [edi + 8]
push ecx
lea ecx, [edi + 4]
push ecx
push eax
call dword [sym.imp.UxTheme.dll_GetBufferedPaintBits]
jmp 0x46bfb1
mov edx, dword [esi]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 8]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0xc]
push ebx
mov dword [edi + 0x1c], edx
call dword [0x52b088]
mov dword [edi], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [edi + 4]
push eax
mov dword [ebp - 0x34], ecx
push 0
lea ecx, [ebp - 0x3c]
push ecx
push ebx
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
call dword [0x52b0a0]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x20]
mov edx, dword [esi + 8]
sub edx, dword [esi]
push eax
mov eax, dword [edi]
push eax
mov dword [edi + 8], edx
call dword [0x52b0ec]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
neg eax
neg ecx
push eax
push ecx
mov ecx, dword [edi]
push ecx
call dword [0x52b08c]
test byte [ebp + 0xc], 2
jne 0x46bfb1
push ebx
call dword [0x52b090]
cmp eax, 3
jne 0x46bfb1
push ebx
call dword [0x52b5a8]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x46bfb1
mov dword [ebp - 0x40], 0
push 0
push 0
push 0
push 0
mov byte [ebp - 4], 2
call dword [0x52b0d0]
push 4
push eax
push ebx
mov dword [ebp - 0x40], eax
call dword [0x52b094]
cmp eax, 1
jne 0x46bfa5
xor eax, eax
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
push edx
push eax
call dword [0x52b580]
mov eax, dword [ebp - 0x44]
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [esi]
mov esi, dword [ebp - 0x40]
push eax
push ecx
push esi
call dword [0x52b0d8]
mov ecx, dword [edi]
push esi
push ecx
call dword [0x52b0cc]
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0046bda0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe191
mov esp, ebp
pop ebp
ret 0xc