Function at 0x5336d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov edx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [esi + 4]
push edi
mov dword [esp + 0x1c], ecx
mov bp, word [esp + 0x1e]
mov di, cx
mov bx, dx
add di, 0xffff
add bx, 1
add bp, 0xffff
cmp eax, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
je 0x53373c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push ecx
mov dword [esp + 0x1c], eax
call sub.gdiplus.dll_GdipReleaseDC
xor ecx, ecx
cmp eax, ecx
je 0x533730
mov edx, dword [esp + 0x14]
mov dword [edx + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 4], 2
jmp 0x53373e
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
sub eax, ecx
je 0x53380d
sub eax, 1
jne 0x5338fe
mov eax, dword [esi + 0x7c]
fld1
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
mov dword [esp + 0x20], ecx
fstp dword [esp]
movzx ecx, al
or ecx, 0xffffff00
movzx edx, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
call sub.gdiplus.dll_GdipCreatePen1
movsx edx, word [esp + 0x22]
fld dword [0x651158]
push 0
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x14
mov dword [esp + 0x60], edx
mov dword [esp + 0x34], eax
fstp dword [esp + 0x10]
movsx eax, bx
fild dword [esp + 0x60]
mov dword [esp + 0x60], eax
fstp dword [esp + 0xc]
movsx ecx, bp
fild dword [esp + 0x60]
mov dword [esp + 0x60], ecx
fstp dword [esp + 8]
movsx edx, di
fild dword [esp + 0x60]
mov dword [esp + 0x60], edx
fstp dword [esp + 4]
lea ebx, [esp + 0x48]
fild dword [esp + 0x60]
fstp dword [esp]
call fcn.004d08c0
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x10]
push eax
call fcn.004db6d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esi + 0x78]
movzx edx, al
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x44]
or edx, 0x4c00
push ecx
movzx ecx, ah
shl edx, 8
shr eax, 0x10
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
push edx
mov dword [esp + 0x3c], vtable.Gdiplus::SolidBrush.0
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x44]
fld1
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x78]
push 0
push ecx
movzx ecx, al
fstp dword [esp]
or ecx, 0xffffff00
movzx edx, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
mov dword [esp + 0x34], 0
call sub.gdiplus.dll_GdipCreatePen1
lea ecx, [esp + 0x34]
fld dword [0x651158]
push ecx
mov dword [esp + 0x2c], eax
movsx eax, word [esp + 0x26]
lea edx, [esp + 0x28]
push edx
sub esp, 0x14
mov dword [esp + 0x30], eax
movsx ecx, bx
fstp dword [esp + 0x10]
fild dword [esp + 0x30]
mov dword [esp + 0x30], ecx
movsx edx, bp
fstp dword [esp + 0xc]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
movsx eax, di
fstp dword [esp + 8]
fild dword [esp + 0x30]
mov dword [esp + 0x30], eax
lea ebx, [esp + 0x48]
fstp dword [esp + 4]
fild dword [esp + 0x30]
fstp dword [esp]
call fcn.004d08c0
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x44]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x10]
push eax
call fcn.004db6d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret