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

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, eax
mov ebx, dword [esi + 4]
cmp ebx, 2
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ebx
je 0x4ddb04
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 4]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
push eax
push ecx
call sub.gdiplus.dll_GdipReleaseDC
test eax, eax
je 0x4ddaf6
mov dword [edi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 4], 2
mov cl, byte [esp + 0x7c]
xor eax, eax
test cl, 8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], 0
je 0x4ddb22
mov eax, dword [0x692930]
jmp 0x4ddb37
test cl, 4
je 0x4ddb2e
mov eax, 0xa
jmp 0x4ddb37
test cl, cl
jns 0x4ddb37
mov eax, 5
mov edx, 0x14
sub edx, eax
mov dword [esp + 0x78], edx
fild dword [esp + 0x78]
fdiv qword [0x650f00]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fld st(0)
fmul dword [esp + 0x74]
fstp dword [esp + 0x74]
fld1
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4ddb7f
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fxch st(1)
test ebp, ebp
jne 0x4ddc4d
mov ecx, dword [esi + 0x7c]
fnstcw word [esp + 0x78]
movzx eax, word [esp + 0x78]
fld st(1)
fld qword [0x650cb0]
or eax, 0xc00
mov dword [esp + 0x10], eax
fmul st(1), st(0)
fxch st(1)
xor edx, edx
fldcw word [esp + 0x10]
xor ebx, ebx
movzx edi, cl
or edi, 0xffffff00
shl edi, 8
fistp dword [esp + 0x10]
movzx eax, byte [esp + 0x10]
mov dh, al
movzx eax, ch
fldcw word [esp + 0x78]
mov dword [esp + 0x10], 1
fld dword [esp + 0x74]
mov dl, cl
fmul qword [0x650ea8]
fstp dword [esp + 0x74]
fmul dword [esp + 0x74]
shl edx, 8
or edx, eax
fnstcw word [esp + 0x74]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
movzx eax, word [esp + 0x74]
or eax, 0xc00
mov dword [esp + 0x78], eax
mov ebp, edx
mov edx, dword [esi + 0x74]
fldcw word [esp + 0x78]
fistp dword [esp + 0x78]
movzx eax, byte [esp + 0x78]
mov bh, al
movzx eax, dh
fldcw word [esp + 0x74]
mov bl, dl
shr edx, 0x10
movzx edx, dl
shl ebx, 8
or ebx, eax
movzx eax, ch
shr ecx, 0x10
or edi, eax
shl ebx, 8
movzx ecx, cl
shl edi, 8
or ebx, edx
or edi, ecx
jmp 0x4ddc88
mov ebx, dword [ebp]
fstp st(0)
push ecx
mov ecx, ebx
fstp dword [esp]
call fcn.00531030
fld1
mov ecx, ebx
fstp dword [esp]
mov ebp, eax
call fcn.00531030
fld dword [esp + 0x78]
mov ecx, ebx
fstp dword [esp]
mov edi, eax
call fcn.00531030
fld dword [esp + 0x7c]
fld dword [esp + 0x74]
add esp, 4
mov ebx, eax
fldz
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4ddcbb
test byte [esp + 0x7c], 1
je 0x4ddcbb
fadd qword [0x650ca8]
push ecx
mov ecx, dword [esi + 0x78]
fstp dword [esp + 0x74]
fstp dword [esp]
call fcn.00531030
fld dword [esp + 0x74]
add esp, 4
mov ebp, eax
jmp 0x4ddcbd
fstp st(1)
mov edx, ebx
shr edx, 0x18
test dl, dl
je 0x4ddd59
lea eax, [esp + 0x7c]
fstp st(0)
push eax
push ebx
mov dword [esp + 0x3c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x84], 0
call sub.gdiplus.dll_GdipCreateSolidFill
fld qword [esp + 0x90]
sub esp, 0x30
fstp qword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x98]
fld qword [esp + 0xb8]
fstp qword [esp + 0x20]
mov ebx, dword [esp + 0xac]
fld qword [eax + 8]
lea ecx, [esp + 0x64]
fld qword [esp + 0xb0]
mov dword [esp + 0x68], ebx
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x18]
fld qword [eax]
fadd st(1)
fstp qword [esp + 0x10]
fld qword [eax + 8]
fsub st(1)
fstp qword [esp + 8]
fsubr qword [eax]
fstp qword [esp]
push ecx
lea ecx, [esp + 0x60]
call fcn.004d03f0
push ebx
call sub.gdiplus.dll_GdipDeleteBrush
fld dword [esp + 0x70]
mov edx, ebp
shr edx, 0x18
test dl, dl
je 0x4de0c4
mov ebx, dword [esp + 0x6c]
fld qword [0x62c6f8]
xor ecx, ecx
fst qword [esp + 0x18]
cmp ebx, ecx
je 0x4dddec
cmp dword [0x691980], ecx
je 0x4ddd8a
fld qword [0x691988]
jmp 0x4ddd8c
fld1
fmul qword [0x650cd0]
fdiv qword [esp + 0x80]
fld qword [0x650c98]
fmul st(1)
fstp qword [esp + 0x18]
fld qword [esp + 0x90]
fsub qword [esp + 0x88]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x4ddde8
fld qword [0x650d40]
jmp 0x4dddc6
fxch st(1)
fadd st(1), st(0)
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 5
jnp 0x4dddc4
fstp st(3)
fstp st(0)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4dddee
mov dword [esp + 0x6c], ecx
mov ebx, ecx
jmp 0x4dddee
fstp st(2)
jmp 0x4dddd7
fstp st(0)
lea eax, [esp + 0x34]
push eax
push ecx
push ecx
fstp dword [esp]
push ebp
mov dword [esp + 0x44], ecx
call sub.gdiplus.dll_GdipCreatePen1
fldz
fcomp dword [esp + 0x70]
mov dword [esp + 0x38], eax
fnstsw ax
test ah, 5
jp 0x4ddec1
cmp dword [esp + 0x10], 0
je 0x4dde79
cmp ebx, 1
jne 0x4dde68
fld qword [esp + 0x18]
fchs
fld qword [0x62c6f8]
mov eax, dword [esp + 0x68]
fxch st(1)
fadd qword [esp + 0x90]
sub esp, 0x18
lea ecx, [esp + 0x4c]
fstp qword [esp + 0x10]
fadd qword [esp + 0xa0]
fstp qword [esp + 8]
fld qword [esp + 0x98]
fstp qword [esp]
push ecx
lea ecx, [esp + 0x48]
call fcn.004dc2b0
jmp 0x4ddec1
cmp ebx, 0xffffffff
fld qword [0x62c6f8]
jne 0x4dde29
fld qword [esp + 0x18]
jmp 0x4dde2f
cmp ebx, 1
jne 0x4ddedb
fld qword [esp + 0x18]
fchs
fld qword [0x62c6f8]
mov eax, dword [esp + 0x68]
fxch st(1)
fadd qword [esp + 0x90]
sub esp, 0x18
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x44]
fstp qword [esp + 0x10]
fadd qword [esp + 0xa0]
fstp qword [esp + 8]
fld qword [esp + 0x98]
fstp qword [esp]
push edx
call fcn.004dc260
test ebx, ebx
je 0x4de0a5
mov ebp, dword [0x691980]
test ebp, ebp
je 0x4ddeec
fld qword [0x691988]
jmp 0x4ddeee
cmp ebx, 0xffffffff
fld qword [0x62c6f8]
jne 0x4dde84
fld qword [esp + 0x18]
jmp 0x4dde8a
fld1
cmp ebx, 0xffffffff
fmul qword [0x650cd0]
mov eax, dword [esp + 0x68]
fdiv qword [esp + 0x80]
fstp dword [esp + 0x7c]
fld qword [eax]
fstp dword [esp + 0x74]
fld qword [eax + 8]
fstp dword [esp + 0x78]
jne 0x4ddf1e
fld qword [esp + 0x88]
jmp 0x4ddf25
fld qword [esp + 0x90]
fst qword [esp + 0x18]
call fcn.00603030
fmul qword [esp + 0x80]
fadd dword [esp + 0x74]
fstp qword [esp + 0x40]
fld qword [esp + 0x18]
call fcn.00602f00
fmul qword [esp + 0x80]
cmp ebx, 1
fadd dword [esp + 0x78]
fstp qword [esp + 0x48]
jne 0x4ddf64
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fadd qword [esp + 0x18]
fst qword [esp + 0x18]
call fcn.00603030
fmul qword [esp + 0x80]
fadd dword [esp + 0x74]
fstp qword [esp + 0x50]
fld qword [esp + 0x18]
call fcn.00602f00
fmul qword [esp + 0x80]
fadd dword [esp + 0x78]
fsub qword [esp + 0x48]
fld qword [esp + 0x50]
fsub qword [esp + 0x40]
call fcn.0060312a
fstp dword [esp + 0x7c]
test ebp, ebp
je 0x4ddfb9
fld qword [0x691988]
jmp 0x4ddfbb
fld1
fdivr dword [esp + 0x70]
lea eax, [esp + 0x7c]
push eax
push edi
mov dword [esp + 0x20], vtable.Gdiplus::SolidBrush.0
fmul qword [0x650cf8]
fadd qword [0x651198]
fmul qword [0x650d28]
fdiv qword [0x650d30]
fmul qword [0x650c98]
fadd dword [esp + 0x84]
mov dword [esp + 0x84], 0
fstp dword [esp + 0x7c]
call sub.gdiplus.dll_GdipCreateSolidFill
cmp dword [0x691980], 0
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
je 0x4de023
fld qword [0x691988]
jmp 0x4de025
fld1
fld st(0)
sub esp, 0x30
fxch st(1)
lea ecx, [esp + 0x48]
fmul qword [0x650cd0]
fld dword [esp + 0xa4]
fst qword [esp + 0x28]
fld dword [esp + 0xa0]
fdivrp st(3)
fxch st(2)
fmul qword [0x650cf8]
fadd qword [0x651198]
fmul qword [0x650d28]
fdiv qword [0x650d30]
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x20]
fld st(0)
fld qword [esp + 0x78]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x18]
fld st(1)
fld qword [esp + 0x70]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x10]
fxch st(1)
fsub st(2)
fstp qword [esp + 8]
fsubrp st(1)
fstp qword [esp]
push ecx
lea ecx, [esp + 0x60]
call fcn.004d03f0
push edi
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x34]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x14]
push eax
call fcn.004db6d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x14]
fstp st(0)
push eax
call fcn.004db6d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret