Function at 0x4a4e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502ad6
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 0x4a50f0
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a4e96
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a4e96
mov dword [edi + 4], eax
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4a4eb1
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a4eb1
mov dword [edi + 4], eax
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a4ecf
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 0x4a4eed
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 0x4a4f03
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 0x4a4f19
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.004a5110
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x1c]
push eax
push ebx
mov edx, esi
call fcn.004a5110
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 0x4a4f75
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 0x4a4f77
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 0x4a4fb2
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 0x4a4fb4
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 0x4a4fdd
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 1
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetCompositingQuality]
test eax, eax
je 0x4a4fef
mov dword [edi + 4], eax
mov edx, dword [edi]
push 1
push edx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x4a5001
mov dword [edi + 4], eax
mov eax, dword [edi]
push 4
push eax
call dword [sym.imp.gdiplus.dll_GdipSetPixelOffsetMode]
test eax, eax
je 0x4a5013
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
test eax, eax
je 0x4a5025
mov dword [edi + 4], eax
inc ebx
cmp ebx, 2
jb 0x4a4fc7
push 0x14
call fcn.004e58e5
add esp, 4
test eax, eax
jne 0x4a504c
push 0x5371cc
lea edx, [ebp + 0xb]
xor al, al
push edx
mov byte [ebp + 0xb], al
call fcn.004eab2f
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.004e58e5
add esp, 4
test eax, eax
jne 0x4a509e
xor al, al
mov byte [ebp + 0xb], al
push 0x5371cc
lea eax, [ebp + 0xb]
push eax
call fcn.004eab2f
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.004a53b0
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