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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446864
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x45e0a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.004193b0
cmp dword [esi + 4], 0
mov dword [ebp - 4], 0
jne 0x415e3a
push esi
lea eax, [ebp - 0x468]
mov ecx, esi
push eax
call fcn.004178f0
cmp dword [esi + 4], 0
jne 0x415e3a
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x41638d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041ee20
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0041ee20
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ea0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00404130
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
push 0
push 0x44b45c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x415ef7
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x416382
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415f00
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00404130
push 0
push 0x400
push 0
lea ecx, [ebp - 0x4a8]
call fcn.004079e0
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x4d4]
xorps xmm0, xmm0
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x4a8], xmm0
mov dword [ebp - 0x498], 3
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
call fcn.00415500
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
cmp eax, 5
jg 0x415fd2
push 0x4496d8
lea ecx, [ebp - 0x438]
call fcn.00402400
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
push 0
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.004016e0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00403c50
mov eax, dword [ebp + 0xc]
cmp eax, 4
jg 0x41601e
push 0x4496ec
lea ecx, [ebp - 0x438]
call fcn.00402400
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 5
push eax
push 0
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.004016e0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00403c50
mov eax, dword [ebp + 0xc]
cmp eax, 3
jg 0x41606a
push 0x4496f8
lea ecx, [ebp - 0x438]
call fcn.00402400
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 6
push eax
push 0
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.004016e0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00403c50
mov eax, dword [ebp + 0xc]
cmp eax, 2
jg 0x4160af
push 0x449708
lea ecx, [ebp - 0x438]
call fcn.00402400
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
push 0
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x4d4]
call fcn.004016e0
lea ecx, [ebp - 0x438]
call fcn.00403c50
xorps xmm0, xmm0
mov dword [ebp - 0x4b0], 4
movups xmmword [ebp - 0x4c0], xmm0
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x428], esi
mov esi, dword [esi]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x4d4]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x468]
movups xmm0, xmmword [ebp - 0x438]
mov dword [ebp - 0x424], eax
mov eax, dword [esi]
mov byte [ebp - 4], 8
mov dword [ebp - 0x4c4], eax
movups xmmword [ebp - 0x524], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [ebp - 0x514], xmm0
cmp eax, esi
je 0x416185
nop word [eax + eax]
sub esp, 0x110
mov edx, esp
mov dword [ebp - 0x4c8], edx
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 0x14]
add eax, 0x18
mov dword [edx + 4], ecx
lea ecx, [edx + 8]
push eax
call fcn.00411090
lea ecx, [ebp - 0x524]
call fcn.00413050
lea ecx, [ebp - 0x4c4]
call fcn.00412920
mov eax, dword [ebp - 0x4c4]
cmp eax, esi
jne 0x416140
xorps xmm0, xmm0
mov dword [ebp - 0x428], 0x100005
movups xmmword [ebp - 0x438], xmm0
mov dword [ebp - 0x438], str.Install
mov dword [ebp - 0x434], 7
push dword [ebp - 0x490]
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00414470
xorps xmm0, xmm0
mov dword [ebp - 0x4dc], 0
movups xmmword [ebp - 0x4ec], xmm0
mov dword [ebp - 0x4d8], 0x100
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x50c], eax
movups xmmword [ebp - 0x508], xmm0
mov dword [ebp - 0x4f4], 0x100
mov byte [ebp - 0x4f0], 0
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040cfc0
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
push 0
cmovae eax, dword [ebp - 0x450]
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c8], eax
cmp eax, 0xffffffff
je 0x4162b9
mov esi, dword [ebp - 0x4e0]
lea ecx, [ebp - 0x4ec]
sub esi, dword [ebp - 0x4e4]
push 1
mov dword [ebp - 0x4c4], 0
call fcn.0040d780
push 0
mov byte [eax], 0
lea eax, [ebp - 0x4c4]
dec dword [ebp - 0x4e0]
push eax
push esi
push dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x4c8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4162dc
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
mov dword [ebp - 0x440], 0
cmovae eax, dword [ebp - 0x450]
xor ecx, ecx
mov word [eax], cx
movups xmm0, xmmword [ebp - 0x450]
mov dword [edi + 0x10], 0
xor eax, eax
push dword [ebp - 0x500]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x450], ax
movq xmm0, qword [ebp - 0x440]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
call fcn.00422f30
push 1
push dword [ebp - 0x504]
call fcn.0041c226
push dword [ebp - 0x4e4]
call fcn.00422f30
push 1
push dword [ebp - 0x4e8]
call fcn.0041c226
add esp, 0x18
lea ecx, [ebp - 0x4d4]
call fcn.00407bf0
lea ecx, [ebp - 0x4a8]
call fcn.00414650
push dword [ebp - 0x480]
call fcn.00422f30
push 1
push dword [ebp - 0x484]
call fcn.0041c226
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.00403c50
lea ecx, [ebp - 0x468]
call fcn.00403c50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c1e0
mov esp, ebp
pop ebp
ret 8