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

Disassembly:
push 0xffffffffffffffff
push 0x442aa3
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x100]
fld dword [edi + 0x58]
mov eax, dword [edi + 0x108]
fstp dword [esp + 0x20]
mov esi, dword [edi + 0x104]
mov ecx, dword [edi + 0x10c]
sub eax, edx
sub ecx, esi
dec eax
dec ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x74], ecx
mov edx, 1
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 0x100]
mov ecx, dword [edi + 0x104]
mov ebx, dword [edi + 0x108]
mov edx, dword [edi + 0x10c]
sub ebx, eax
sub edx, ecx
push 0x10
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x42139d
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x24]
push edx
push ebp
push 0x26200a
push ebp
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x3c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x50], esi
jmp 0x4213a3
mov dword [esp + 0x50], ebp
mov esi, ebp
push 8
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
cmp ebx, ebp
je 0x4213d5
mov dword [esp + 0x24], ebp
cmp esi, ebp
je 0x4213c9
mov eax, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
push eax
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [esp + 0x1c], ebx
jmp 0x4213db
mov dword [esp + 0x1c], ebp
mov ebx, ebp
mov edx, dword [ebx]
push 2
push edx
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, ebp
je 0x4213ec
mov dword [ebx + 4], eax
fild dword [esp + 0x70]
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
lea edx, [esp + 0x24]
fstp dword [esp + 0x18]
push edx
fild dword [esp + 0x78]
push ebp
push eax
push ecx
fstp dword [esp + 0x58]
lea eax, [esp + 0x50]
fld dword [esp + 0x28]
push eax
fstp dword [esp + 0x54]
lea ecx, [esp + 0x6c]
fld dword [esp + 0x5c]
mov ebx, vtable.Gdiplus::LinearGradientBrush.0
fstp dword [esp + 0x58]
push ecx
fldz
mov dword [esp + 0x80], ebx
fst dword [esp + 0x70]
mov dword [esp + 0x3c], ebp
fstp dword [esp + 0x74]
call sub.gdiplus.dll_GdipCreateLineBrush
mov esi, dword [esp + 0x24]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0xdc], ebp
mov ecx, dword [edi + 0x7c]
mov eax, 0x1b4e81b5
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x80]
push ecx
fild dword [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x8c], ebp
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push esi
call sub.gdiplus.dll_GdipCreatePen2
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x1c]
push edx
mov eax, edi
call fcn.00422400
mov eax, dword [esp + 0x38]
mov ecx, eax
sub ecx, dword [esp + 0x30]
cdq
mov dword [esp + 0x18], ecx
sub eax, edx
fild dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
push ecx
fdiv qword [0x44c450]
push ebp
sar eax, 1
push 0xff000000
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x40]
push 0xff000000
lea edx, [esp + 0x50]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x5c], ebp
push edx
fstp dword [esp + 0x5c]
lea eax, [esp + 0x6c]
push eax
call sub.gdiplus.dll_GdipCreateLineBrushI
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ecx
mov eax, dword [edi + 0xc8]
mov dl, byte [edi + 0xc8]
mov ecx, eax
shr eax, 0x10
movzx eax, al
shr ecx, 8
or eax, 0x6400
movzx ecx, cl
shl eax, 8
or eax, ecx
movzx edx, dl
shl eax, 8
lea ecx, [esp + 0x54]
or eax, edx
push ecx
push eax
mov dword [esp + 0xac], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x5c], ebp
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x54]
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], edx
fld1
mov eax, dword [edi + 0xc8]
lea ecx, [esp + 0x78]
push ecx
push ebp
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x88], ebp
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x7c], eax
mov byte [esp + 0xdc], 4
mov eax, dword [edi + 0xf0]
mov eax, dword [eax]
mov esi, dword [edi + 0xd8]
mov ebx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
lea ecx, [ecx]
mov edx, dword [edi + 0xf0]
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x44], edx
cmp esi, ebp
je 0x4215d8
cmp esi, eax
je 0x4215de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x44]
je 0x421826
cmp esi, ebp
jne 0x42181f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor esi, esi
cmp ebx, dword [esi + 0x18]
jne 0x421603
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 0x10]
cmp ebx, ebp
je 0x421809
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push eax
mov eax, dword [esp + 0x50]
push ecx
push eax
call sub.gdiplus.dll_GdipSetLineColors
cmp eax, ebp
je 0x42162b
mov dword [esp + 0x90], eax
fild dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
fstp dword [esp + 0x58]
fild dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
sub esp, 8
fstp dword [esp + 0x64]
lea eax, [esp + 0x90]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x68]
fild dword [esp + 0x20]
fstp dword [esp + 0x6c]
fld dword [ebx + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
push eax
lea eax, [esp + 0x64]
call fcn.0041ee60
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push ecx
call sub.gdiplus.dll_GdipSetLineColors
cmp eax, ebp
je 0x4216a6
mov dword [esp + 0x90], eax
fild dword [esp + 0x30]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x48]
sub edx, dword [esp + 0x30]
fld st(0)
mov eax, dword [esp + 0x3c]
faddp st(2)
sub eax, dword [esp + 0x34]
fxch st(1)
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x94]
sub esp, 8
fild dword [esp + 0x3c]
lea ecx, [esp + 0x90]
fadd st(1)
fstp dword [esp + 0xa0]
fadd st(0), st(0)
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x9c]
fsub st(1)
fstp dword [esp + 0xa4]
fisubr dword [esp + 0x20]
fstp dword [esp + 0xa8]
fld dword [ebx + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
push ecx
call fcn.0041ee60
cmp dword [ebx + 0x44], ebp
je 0x4217fe
fild dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
fstp dword [esp + 0xb0]
fild dword [esp + 0x34]
mov dword [esp + 0x18], edx
sub esp, 8
lea ecx, [esp + 0xac]
fstp dword [esp + 0xbc]
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xb8]
fstp dword [esp + 0xc0]
fild dword [esp + 0x20]
fstp dword [esp + 0xc4]
fld dword [ebx + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
push ecx
call fcn.0041ee60
fild dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0xc0]
fild dword [esp + 0x34]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], edx
sub esp, 8
fstp dword [esp + 0xcc]
lea ecx, [esp + 0x80]
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc8]
fstp dword [esp + 0xd0]
fild dword [esp + 0x20]
fstp dword [esp + 0xd4]
fld dword [ebx + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
push ecx
call fcn.0041ed70
fld dword [esp + 0x20]
fadd dword [ebx + 0xc]
fstp dword [esp + 0x20]
lea esi, [esp + 0x28]
call fcn.00405c70
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x4215c0
mov esi, dword [esi]
jmp 0x4215f8
mov eax, dword [edi + 0xf0]
fld dword [edi + 0x58]
mov eax, dword [eax]
fstp dword [esp + 0x20]
mov edx, dword [edi + 0xd8]
mov ebx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
jmp 0x421850
mov ecx, dword [esp + 0x28]
mov esi, dword [edi + 0xf0]
mov eax, dword [edi + 0xd8]
cmp ecx, ebp
je 0x421868
cmp ecx, eax
je 0x42186e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x421a05
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x421886
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
jmp 0x421888
mov ebp, dword [eax]
cmp ebx, dword [ebp + 0x18]
jne 0x421893
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 0x10]
test ebp, ebp
je 0x421989
fld dword [ebp + 0xc]
mov esi, dword [esp + 0x30]
fadd dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
lea eax, [esi + ebx]
cdq
fmul qword [0x44c3b0]
sub eax, edx
sar eax, 1
mov dword [esp + 0x48], eax
fdiv qword [0x44c3b8]
fst qword [esp + 0x94]
call sub.MSVCR90.dll__CIcos
mov eax, ebx
mov ebx, dword [esp + 0x3c]
sub eax, esi
mov esi, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
lea eax, [esi + ebx]
fild dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
fmulp st(1)
mov dword [esp + 0x18], eax
fiadd dword [esp + 0x48]
fstp dword [esp + 0x58]
fld qword [esp + 0x94]
call sub.MSVCR90.dll__CIsin
mov eax, ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x94], eax
fild dword [esp + 0x94]
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
fmulp st(1)
sub esp, 0x10
fiadd dword [esp + 0x28]
fstp dword [esp + 0x6c]
fild dword [esp + 0x58]
fstp dword [esp + 0x50]
fild dword [esp + 0x28]
fstp dword [esp + 0x54]
fld dword [esp + 0x6c]
fstp dword [esp + 0xc]
fld dword [esp + 0x68]
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld dword [esp + 0x50]
fstp dword [esp]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLine
test eax, eax
je 0x42197a
mov dword [esi + 4], eax
fld dword [ebp + 0xc]
mov ebx, dword [esp + 0x2c]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
cmp dword [esp + 0x28], 0
jne 0x421996
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp byte [ebx + 0x15], 0
je 0x4219a9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor ebp, ebp
jmp 0x421850
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x15], 0
jne 0x4219d7
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x4219ca
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x4219c0
mov dword [esp + 0x2c], ecx
mov ebx, ecx
xor ebp, ebp
jmp 0x421850
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x4219f8
jmp 0x4219e6
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [eax + 8]
jne 0x4219f8
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x4219e2
mov dword [esp + 0x2c], eax
mov ebx, eax
xor ebp, ebp
jmp 0x421850
mov esi, dword [esp + 0x1c]
push esi
push edi
call fcn.00420350
cmp dword [edi + 0xd4], ebp
je 0x421a1f
push esi
push edi
call fcn.00420e50
mov edx, dword [esi]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
push 0xc
mov byte [esp + 0xe0], 5
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x421a86
mov edx, dword [esp + 0x50]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.Gdiplus::CachedBitmap.0
mov dword [eax], ebp
mov eax, dword [edx + 4]
push ebx
push eax
call sub.gdiplus.dll_GdipCreateCachedBitmap
mov dword [esi + 8], eax
jmp 0x421a88
xor esi, esi
mov ebx, dword [esp + 0x50]
call fcn.00423120
mov ecx, ebx
test ecx, ecx
je 0x421a9f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
push 0
push 0
push ecx
push edi
call sub.gdiplus.dll_GdipDrawCachedBitmap
test eax, eax
je 0x421ab9
mov dword [esp + 0x44], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x78]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x54]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x4c]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x80]
push ecx
call sub.gdiplus.dll_GdipDeletePen
mov edx, dword [esp + 0x24]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 4