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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5340a8
mov eax, dword fs:[0]
push eax
mov eax, 0x1590
call fcn.00501720
mov eax, dword [0x57c54c]
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 edi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x200
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.00503920
add esp, 0xc
call fcn.00407620
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x431ed8
movaps xmm0, xmmword [0x5648a0]
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x61507265
mov dword [ebp - 0x18], 0x576874
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
push 0
push 0x10
lea eax, [ebp - 0x34c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x431f2d
lea ecx, [ebp - 0x34c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431f00
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x431f2d
push 0x55eb5c
lea eax, [ebp - 0x34c]
push 0x100
push eax
call fcn.0050891c
add esp, 0xc
cmp word [ebp - 0x34c], 0
mov esi, 0x80004005
je 0x4323a6
cmp byte [edi + 0x4248], 0
jne 0x431f59
mov eax, dword [edi + 0x140c]
cmp byte [eax], 0x3a
je 0x431f68
jmp 0x4323a6
mov eax, dword [edi + 0x1410]
cmp byte [eax], 0x3a
jne 0x4323a6
push 0x105
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x1594]
push 0x20a
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0xb84]
push 0x20a
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0xf84]
push 0x400
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0xf84]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [edi + 0x4248], 0
lea eax, [ebp - 0xf83]
je 0x431fe9
push dword [edi + 0x1410]
jmp 0x431fef
push dword [edi + 0x140c]
push 0x103
push eax
call fcn.0050c68a
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x1594]
add esp, 0xc
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xf84]
push eax
push 0
push 0x3a8
call esi
cmp byte [edi + 0x4248], 0
mov ebx, 0x1c14
mov ecx, 0x1814
cmove ebx, ecx
add ebx, edi
je 0x4322d0
cmp byte [ebx], 0
je 0x4322d0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, ebx
xor esi, esi
call fcn.00470a30
cmp dword [ebp - 0x1c], esi
jne 0x4320a2
nop
inc esi
cmp esi, 3
jg 0x4321aa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.00470a30
cmp dword [ebp - 0x1c], 0
je 0x432080
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ecx
mov ebx, eax
lea eax, [ebp - 0x14c]
push 0x23
push eax
push ebx
call fcn.00407620
mov ecx, eax
call fcn.00457b00
push str._tempicon_
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.00507fcc
add esp, 0xc
lea eax, [ebp - 0x554]
push 0x208
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x554]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14c]
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00407620
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x43213f
movaps xmm0, xmmword [0x564a30]
lea ecx, [ebp - 0x40]
push ecx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x79
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x554]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x400
lea eax, [ebp - 0x1384]
push 0
push eax
call fcn.00503920
lea ebx, [edi + 0x808]
add esp, 0xc
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x432170
sub esi, ecx
lea eax, [ebp - 0x1384]
push esi
push ebx
push eax
call fcn.00503a80
add esp, 0xc
lea eax, [ebp - 0x1384]
push 0x56042c
push eax
call fcn.00503360
add esp, 8
test eax, eax
je 0x432201
mov dword [eax], 0x6f63692e
jmp 0x43220c
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4321e5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4321db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4323cc
push edx
push ecx
call fcn.005010b4
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, 0x80004005
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x4323ae
mov dword [ebp + esi - 0x1384], 0x6f63692e
lea eax, [ebp - 0x1384]
push eax
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.00507fcc
add esp, 0xc
mov dword [ebp - 0x1598], 0
lea eax, [ebp - 0x14c]
push 0x560430
push eax
lea eax, [ebp - 0x1598]
push eax
call fcn.0050c587
mov ecx, dword [ebp - 0x1598]
add esp, 0xc
test ecx, ecx
je 0x43227b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
call fcn.00507bfe
push dword [ebp - 0x1598]
call fcn.00506fce
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4322b6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4322ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4323d1
push edx
push ecx
call fcn.005010b4
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x4322f1
lea eax, [ebp - 0xf84]
push eax
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.0050c68a
add esp, 0xc
lea ebx, [edi + 0x808]
push 0x104
lea eax, [ebp - 0xb84]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14c]
push eax
push 0
push 0x3a8
call esi
push 0x20a
lea eax, [ebp - 0x764]
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x974]
push 0x20a
push 0
push eax
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x764]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
call esi
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x34c]
push 0x100
push eax
call fcn.0050891c
add esp, 0xc
lea eax, [ebp - 0x974]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [edi + 8]
push eax
push 0
push 0x3a8
call esi
lea eax, [ebp - 0x974]
push eax
lea eax, [ebp - 0xb84]
push eax
lea eax, [ebp - 0x34c]
push eax
push ecx
call fcn.004323e0
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
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.00500b45
mov esp, ebp
pop ebp
ret 4
call fcn.00508868
call fcn.00508868
int3