Function at 0x4a3980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501b66
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x5512c0]
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 0x4a3c30
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a39d6
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a39d6
mov dword [edi + 4], eax
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4a39f1
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
test eax, eax
je 0x4a39f1
mov dword [edi + 4], eax
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4a3a0f
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 0x4a3a2d
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 0x4a3a43
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 0x4a3a59
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.004a3c50
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x1c]
push eax
push ebx
mov edx, esi
call fcn.004a3c50
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 0x4a3ab5
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 0x4a3ab7
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 0x4a3af2
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 0x4a3af4
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 0x4a3b1d
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 1
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetCompositingQuality]
test eax, eax
je 0x4a3b2f
mov dword [edi + 4], eax
mov edx, dword [edi]
push 1
push edx
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
test eax, eax
je 0x4a3b41
mov dword [edi + 4], eax
mov eax, dword [edi]
push 4
push eax
call dword [sym.imp.gdiplus.dll_GdipSetPixelOffsetMode]
test eax, eax
je 0x4a3b53
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
test eax, eax
je 0x4a3b65
mov dword [edi + 4], eax
inc ebx
cmp ebx, 2
jb 0x4a3b07
push 0x14
call fcn.004e4985
add esp, 4
test eax, eax
jne 0x4a3b8c
push 0x535d2c
lea edx, [ebp + 0xb]
xor al, al
push edx
mov byte [ebp + 0xb], al
call fcn.004e9bcf
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.004e4985
add esp, 4
test eax, eax
jne 0x4a3bde
xor al, al
mov byte [ebp + 0xb], al
push 0x535d2c
lea eax, [ebp + 0xb]
push eax
call fcn.004e9bcf
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.004a3ef0
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