Function at 0x4a46c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502766
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4a4970
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a4716
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a4716
mov dword [edi + 4], eax
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4a4731
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a4731
mov dword [edi + 4], eax
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a474f
mov eax, dword [edi]
push eax
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [esi + 0x30], 0
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4a476d
mov ecx, dword [edi]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [esi + 0x34], 0
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4a4783
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4a4799
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x3c], 0
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x18]
push edx
push ebx
mov edx, esi
call fcn.004a4990
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x1c]
push eax
push ebx
mov edx, esi
call fcn.004a4990
mov ecx, dword [esi + 8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 8
call ebx
mov edi, eax
mov dword [ebp - 0x14], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x4a47f5
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
jmp 0x4a47f7
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push 8
mov dword [esi + 0x30], edi
call ebx
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
xor ebx, ebx
cmp edi, ebx
je 0x4a4832
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edx, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [edi], edx
jmp 0x4a4834
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x30]
mov dword [esi + 0x34], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + ebx*4 - 0x18]
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.gdiplus.dll_GdipSetCompositingMode]
test eax, eax
je 0x4a485d
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 1
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetCompositingQuality]
test eax, eax
je 0x4a486f
mov dword [edi + 4], eax
mov edx, dword [edi]
push 1
push edx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x4a4881
mov dword [edi + 4], eax
mov eax, dword [edi]
push 4
push eax
call dword [sym.imp.gdiplus.dll_GdipSetPixelOffsetMode]
test eax, eax
je 0x4a4893
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
test eax, eax
je 0x4a48a5
mov dword [edi + 4], eax
inc ebx
cmp ebx, 2
jb 0x4a4847
push 0x14
call fcn.004e5485
add esp, 4
test eax, eax
jne 0x4a48cc
push 0x53708c
lea edx, [ebp + 0xb]
xor al, al
push edx
mov byte [ebp + 0xb], al
call fcn.004ea6cf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x34]
mov dword [eax + 4], edx
lea edx, [esi + 0xc]
lea edi, [esi + 0x14]
or ebx, 0xffffffff
mov dword [eax], vtable.CDrawObject.0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov dword [ebp - 4], ebx
push 0x14
mov dword [esi + 0x38], eax
call fcn.004e5485
add esp, 4
test eax, eax
jne 0x4a491e
xor al, al
mov byte [ebp + 0xb], al
push 0x53708c
lea eax, [ebp + 0xb]
push eax
call fcn.004ea6cf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x30]
mov dword [eax + 4], edx
lea edx, [esi + 0x10]
mov dword [eax], vtable.CDrawObject.0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], 1
call fcn.004a4c30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4