Function at 0x41a2b0
Capabilities:
Check os version
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45adc6
mov eax, dword fs:[0]
push eax
sub esp, 0xdc8
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0xdc4], eax
push ebx
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0xdd8]
mov dword fs:[0], eax
push 0x11c
xor edi, edi
lea eax, [esp + 0x50]
push edi
push eax
call fcn.00443e10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 0x11c
call esi
cmp eax, edi
jne 0x41a32b
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], 0x114
call esi
test eax, eax
je 0x41a347
cmp dword [esp + 0x5c], 2
jne 0x41a347
cmp dword [esp + 0x50], 5
jne 0x41a4db
cmp dword [esp + 0x54], edi
jne 0x41a4db
push 0x206
lea eax, [esp + 0x7d2]
push edi
push eax
mov word [esp + 0x7d8], di
call fcn.00443e10
add esp, 0xc
push 0x206
lea ecx, [esp + 0x5ca]
push edi
push ecx
mov word [esp + 0x5d0], di
call fcn.00443e10
add esp, 0xc
push 0x206
lea edx, [esp + 0x3c2]
push edi
push edx
mov word [esp + 0x3c8], di
call fcn.00443e10
add esp, 0xc
push 0x104
lea eax, [esp + 0x7d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x5c4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.gdiplus.dll
lea edx, [esp + 0x7d0]
push edx
push 0x45fb18
push 0x208
lea eax, [esp + 0x3cc]
push 0x104
push eax
call fcn.0043ef21
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x18
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x3c0]
push edx
call esi
cmp eax, 0xffffffff
jne 0x41a4db
mov ecx, dword [0x471e68]
lea eax, [esp + 0x7cc]
push eax
call fcn.00404d80
add esp, 4
test eax, eax
je 0x41a4db
push str.gdiplus.dll
lea ecx, [esp + 0x5c8]
push ecx
push 0x45fb18
push 0x208
lea edx, [esp + 0x3cc]
push 0x104
push edx
call fcn.0043ef21
add esp, 0x18
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x3c0]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x41a4db
mov ecx, dword [0x471e68]
lea edx, [esp + 0x5c4]
push edx
call fcn.00404d80
add esp, 4
test eax, eax
jne 0x41a507
push str.gdiplus.dll
lea eax, [esp + 0x5c8]
push eax
push 0x45fb18
push 0x208
lea ecx, [esp + 0x3cc]
push 0x104
push ecx
call fcn.0043ef21
add esp, 0x18
lea edx, [esp + 0x3bc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
lea eax, [esp + 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov ecx, dword [esp + 0xdd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdc4]
xor ecx, esp
call fcn.0043ef12
add esp, 0xdd4
ret
push str.ExtractGDIFile
push 0x400
lea ecx, [esp + 0x9dc]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x30]
call fcn.0042a750
mov dword [esp + 0xde0], edi
mov ebx, 7
lea eax, [esp + 0x9d4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a552
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x9d8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov byte [esp + 0xde8], 1
call fcn.00406d90
cmp dword [esp + 0x2c], 8
jb 0x41a59f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x48], 8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x41a5bb
lea edx, [esp + 0x34]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x41a5fa
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a5d0
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0x48], 8
jb 0x41a60e
mov edx, dword [esp + 0x34]
push edx
call fcn.0043ef40
add esp, 4
xor eax, eax
jmp 0x41a4e0