Function at 0x41c760
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48556f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push ebx
push ebp
mov ebx, ecx
push esi
mov ecx, dword [esp + 0x2ec]
lea eax, [esp + 0x20]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x2c], edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2e8], edi
call fcn.004061a0
mov ecx, eax
call fcn.00408280
mov ebp, eax
xor ecx, ecx
push 6
mov eax, dword [ebp + 8]
mov dword [esp + 0x84], 0x48ab14
mov esi, eax
mov cl, ah
and esi, 0xff
and ecx, 0xff
or esi, 0xffffff00
shl esi, 8
or esi, ecx
lea ecx, [esp + 0x84]
shr eax, 0x10
shl esi, 8
and eax, 0xff
or esi, eax
call fcn.0041a4f0
lea edx, [esp + 0x14]
mov dword [esp + 0x80], 0x48ab1c
push edx
push esi
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x68]
push 0x10
push eax
push edi
lea ecx, [esp + 0x8c]
push edi
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2fc], 1
call fcn.0041a580
mov cl, byte [ebp + 4]
mov edx, dword [ebp + 4]
xor eax, eax
mov byte [esp + 0x10], cl
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 5]
shr edx, 0x10
and esi, 0xff
mov byte [esp + 0x24], dl
mov byte [esp + 0x18], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
or esi, 0xffffff00
shl esi, 8
and edx, 0xff
and eax, 0xff
or esi, edx
push 6
shl esi, 8
lea ecx, [esp + 0x90]
or esi, eax
mov dword [esp + 0x90], 0x48ab14
call fcn.0041a4f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x8c], 0x48ab1c
push ecx
push esi
mov dword [esp + 0x2c], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edx
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
sub eax, esi
sub ecx, edx
push eax
mov dword [esp + 0xb8], eax
push ecx
push 0x10
lea eax, [esp + 0x98]
mov dword [esp + 0xbc], ecx
push edi
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2fc], 2
call fcn.0041a580
call fcn.004061a0
mov ecx, eax
call fcn.004082a0
mov ecx, 0x86
mov esi, eax
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2d8]
mov edx, dword [esp + 0x2d4]
mov eax, dword [esp + 0x2d0]
mov dword [esp + 0x14], ecx
xor edi, edi
lea ecx, [esp + 0xc8]
push edi
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
call fcn.0041a5c0
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp eax, edi
mov byte [esp + 0x2e8], 3
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], eax
je 0x41c9a4
call fcn.0041a5f0
mov esi, dword [eax]
call fcn.0041a5f0
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x41c9a4
mov edx, dword [esp + 0x44]
push edx
jmp 0x41ca07
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push esi
call sub.gdiplus.dll_GdipCreateFont
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x41ca02
call fcn.0041a5f0
mov esi, dword [eax]
call fcn.0041a5f0
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x41c9e4
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x41ca07
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edi
push ecx
push edi
push edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2dc]
mov eax, dword [esp + 0x38]
push edx
push eax
mov byte [esp + 0x2f0], 5
call sub.gdiplus.dll_GdipSetStringFormatAlign
push eax
lea ecx, [esp + 0x3c]
call fcn.0041a520
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov byte [esp + 0x10], al
mov esi, dword [esp + 0x10]
mov dl, byte [ebp + 0xd]
shr ecx, 0x10
and esi, 0xff
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
or esi, 0xffffff00
shl esi, 8
and ecx, 0xff
and edx, 0xff
or esi, ecx
lea ecx, [esp + 0x5c]
shl esi, 8
or esi, edx
call fcn.00402950
lea eax, [esp + 0x10]
mov dword [esp + 0x5c], 0x48ab1c
push eax
push esi
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x60]
sub eax, ecx
mov byte [esp + 0x2e8], 6
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x5c]
fild dword [esp + 0x24]
cmp eax, 0x107
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x40000000
mov dword [esp + 0xc4], 0x41800000
fst dword [esp + 0x44]
fstp dword [esp + 0xc0]
jne 0x41cb40
mov dx, ax
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0041f670
mov ecx, eax
call fcn.00421780
push eax
lea ecx, [ebx + 0x88]
mov byte [esp + 0x2ec], 7
call fcn.0047b269
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e8], 6
call fcn.0047b122
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
neg eax
mov edx, dword [esp + 0x38]
mov esi, dword [ebx + 0x88]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x38]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
lea edx, [esp + 0x2c]
neg edx
sbb edx, edx
push ecx
and edx, dword [esp + 0x30]
lea ecx, [esp + 0xc0]
push ecx
push edx
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push esi
push edx
call sub.gdiplus.dll_GdipDrawString
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
mov dl, byte [ebp + 0x18]
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov byte [esp + 0x18], dl
mov esi, dword [esp + 0x18]
mov cl, byte [ebp + 0x19]
shr eax, 0x10
and esi, 0xff
mov byte [esp + 0x30], al
mov byte [esp + 0x14], cl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
or esi, 0xffffff00
shl esi, 8
and eax, 0xff
and ecx, 0xff
or esi, eax
shl esi, 8
or esi, ecx
lea ecx, [esp + 0x68]
call fcn.00402950
lea edx, [esp + 0x18]
mov dword [esp + 0x68], 0x48ab1c
push edx
push esi
mov dword [esp + 0x20], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x30], al
xor edx, edx
mov esi, dword [esp + 0x30]
mov dl, byte [ebp + 0x11]
shr ecx, 0x10
and esi, 0xff
mov byte [esp + 0x14], cl
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
or esi, 0xffffff00
shl esi, 8
and ecx, 0xff
and edx, 0xff
or esi, ecx
lea ecx, [esp + 0x50]
shl esi, 8
mov byte [esp + 0x2e8], 8
or esi, edx
call fcn.00402950
lea eax, [esp + 0x10]
mov dword [esp + 0x50], 0x48ab1c
push eax
push esi
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov cl, byte [ebp + 0x14]
mov edx, dword [ebp + 0x14]
mov byte [esp + 0x30], cl
xor eax, eax
mov esi, dword [esp + 0x30]
mov al, byte [ebp + 0x15]
shr edx, 0x10
and esi, 0xff
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
or esi, 0xffffff00
shl esi, 8
and edx, 0xff
and eax, 0xff
or esi, edx
lea ecx, [esp + 0x74]
shl esi, 8
mov byte [esp + 0x2e8], 9
or esi, eax
call fcn.00402950
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 0x48ab1c
push ecx
push esi
mov dword [esp + 0x20], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov eax, dword [ebx + 0x5c]
lea ebp, [ebx + 0x54]
push ebp
push eax
mov byte [esp + 0x2f0], 0xa
call fcn.004061a0
mov ecx, eax
call fcn.00409eb0
test eax, eax
jne 0x41cd21
mov dword [ebp], 0xffffffff
cmp dword [ebx + 0x5c], edi
jne 0x41cd43
mov eax, dword [ebp]
cmp eax, 3
jne 0x41cd37
mov dword [ebp], 2
jmp 0x41cd43
cmp eax, 5
jne 0x41cd43
mov dword [ebp], 3
mov ecx, dword [0x4a6058]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x34], ecx
mov cx, word [ebx + 0x5c]
lea edx, [esp + 0x34]
lea eax, [esp + 0x4c]
push edx
push eax
push ecx
mov byte [esp + 0x2f4], 0xb
call fcn.0041f670
mov ecx, eax
call fcn.004217e0
test eax, eax
jne 0x41ce1b
lea ecx, [esp + 0x34]
mov byte [esp + 0x2e8], 0xa
call fcn.0047b122
mov edx, dword [esp + 0x78]
mov esi, 0x48ab14
push edx
mov dword [esp + 0x78], esi
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], esi
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x68], esi
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], esi
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x38]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x90]
mov dword [esp + 0x8c], esi
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], esi
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
xor eax, eax
jmp 0x41d16c
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x40], eax
jle 0x41d033
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x40]
shl eax, 4
add eax, 0x11
mov dword [esp + 0xa8], edx
mov dx, word [ebx + 0x5c]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
lea eax, [esp + 0x34]
mov dword [esp + 0xa0], 0x41700000
push eax
push ecx
fstp dword [esp + 0xac]
push edx
mov dword [esp + 0xb8], 0x41800000
call fcn.0041f670
mov ecx, eax
call fcn.004217e0
test eax, eax
je 0x41d01e
mov eax, dword [esp + 0x40]
mov cx, word [ebx + 0x5c]
push eax
push ecx
call fcn.0041f670
mov ecx, eax
call fcn.004218a0
mov esi, eax
cmp esi, edi
je 0x41cf1c
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], edi
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.0041a4f0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, esi
call fcn.0041a4f0
fld dword [esp + 0xa4]
call fcn.00463230
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 4]
push 0xa
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectI
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
fld dword [esp + 0xa0]
fadd dword [0x48b4e0]
fstp dword [esp + 0xa0]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp]
cmp eax, ecx
jne 0x41cfbb
mov esi, dword [ebx + 0x80]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], edi
mov eax, dword [esi + 4]
push eax
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.0041a4f0
mov esi, dword [ebx + 0x80]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], edi
mov edx, dword [esi + 4]
push edx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, esi
call fcn.0041a4f0
fld dword [esp + 0xa4]
call fcn.00463230
mov ecx, dword [ebx + 0x80]
add eax, 5
cmp ecx, edi
je 0x41cf89
mov ecx, dword [ecx + 4]
jmp 0x41cf8b
xor ecx, ecx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push 6
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectI
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
jmp 0x41cfda
cmp eax, dword [ebx + 0x58]
jne 0x41cfce
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x74]
neg eax
sbb eax, eax
jmp 0x41cfda
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
mov edx, dword [esp + 0x38]
and eax, ecx
lea ecx, [esp + 0x38]
mov esi, dword [esp + 0x28]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
lea edx, [esp + 0x2c]
neg edx
mov eax, dword [esp + 0x20]
push ecx
sbb edx, edx
lea ecx, [esp + 0xa8]
and edx, esi
push ecx
push edx
mov edx, dword [esp + 0x44]
push 0xffffffffffffffff
push edx
push eax
call sub.gdiplus.dll_GdipDrawString
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x41ce2d
lea ecx, [esp + 0x98]
mov dword [esp + 0x98], edi
push ecx
push edi
push 0x3f800000
push 0xffffffffffffffff
call sub.gdiplus.dll_GdipCreatePen1
mov dword [esp + 0x9c], eax
mov ebx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov byte [esp + 0x2e8], 0xc
lea eax, [ebx - 1]
lea ecx, [edx - 1]
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edi
push eax
push ecx
call sub.gdiplus.dll_GdipDrawRectangleI
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
mov esi, 0x10
cmp ebx, esi
jle 0x41d0c6
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push esi
push edi
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLineI
push eax
lea ecx, [esp + 0x20]
call fcn.004448c0
add esi, 0x10
cmp esi, ebx
jl 0x41d09b
mov edx, dword [esp + 0x98]
push edx
call sub.gdiplus.dll_GdipDeletePen
lea ecx, [esp + 0x34]
mov byte [esp + 0x2e8], 0xa
call fcn.0047b122
mov eax, dword [esp + 0x78]
mov esi, 0x48ab14
push eax
mov dword [esp + 0x78], esi
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x50], esi
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x68], esi
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], esi
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x38]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x90]
mov dword [esp + 0x8c], esi
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x80], esi
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2dc
ret 4