Function at 0x410f7f
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a07
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x468], eax
push eax
lea ecx, [ebp - 0x440]
call fcn.00407dfe
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x440]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x410fe1
push 0x80070057
call fcn.00411c5d
mov ecx, 1
sub ecx, dword [edx - 4]
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x411004
push esi
lea ecx, [ebp - 0x440]
call fcn.00408463
mov edx, dword [ebp - 0x440]
lea eax, [esi + 1]
push eax
push edx
call fcn.0040f613
add esp, 8
mov eax, dword [ebp - 0x440]
cmp esi, dword [eax - 8]
jg 0x410fd7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov edx, dword [ebp - 0x440]
mov word [edx + esi*2], cx
lea ecx, [ebp - 0x474]
call fcn.004168a1
mov byte [ebp - 4], 1
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push 0x63
push 0xbbb
lea eax, [ebp - 0x454]
push eax
call fcn.00409528
add esp, 0xc
mov ecx, dword [0x423b8c]
sub ecx, dword [0x423b88]
jne 0x4110d3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x454]
call fcn.0041341b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x464]
call fcn.0041341b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x474]
call fcn.00414cc4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040acc3
jmp 0x4112a4
push 0x6c
sub esp, 0x10
mov dword [ebp - 0x444], esp
mov ecx, esp
call fcn.00408b4c
mov byte [ebp - 4], 5
mov eax, dword [0x423b88]
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x474]
call fcn.004186ef
mov esi, eax
cmp esi, ebx
je 0x411090
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov eax, dword [esi + 4]
add eax, 0x71620
push eax
push fcn.004134bd
call fcn.0040d6e7
xor edx, edx
mov word [ebp - 0x220], dx
push 0x20a
push ebx
lea eax, [ebp - 0x21e]
push eax
call fcn.0040dca2
add esp, 0x14
lea ecx, [ebp - 0x220]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4111f3
xor edx, edx
mov word [ebp - 0x42c], dx
push 0x208
push ebx
lea eax, [ebp - 0x42a]
push eax
call fcn.0040dca2
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push 0x17a
push 0x41b30c
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4111f3
push ebx
push 0x100
push 2
push ebx
push 1
push 0x10000000
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4111f3
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [ebp - 0x444], ebx
push ebx
lea edx, [ebp - 0x444]
push edx
push 0x10
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x468]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004134bd
mov dword [ebp - 4], 3
jmp 0x411221
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x411232
push edi
call fcn.0040c8bc
add esp, 4
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x464]
cmp eax, ebx
je 0x41125b
push eax
call fcn.0040c8bc
add esp, 4
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x474]
call fcn.00414cc4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret 0x10