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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b028
mov eax, dword fs:[0]
push eax
mov eax, 0x1590
call fcn.004f9530
mov eax, dword [0x57254c]
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.004fb730
add esp, 0xc
call fcn.00405a90
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x42cdf8
movaps xmm0, xmmword [0x55b370]
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 0x42ce4d
lea ecx, [ebp - 0x34c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ce20
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x42ce4d
push 0x555afc
lea eax, [ebp - 0x34c]
push 0x100
push eax
call fcn.005000cb
add esp, 0xc
cmp word [ebp - 0x34c], 0
mov esi, 0x80004005
je 0x42d2c6
cmp byte [edi + 0x3a48], 0
jne 0x42ce79
mov eax, dword [edi + 0xc0c]
cmp byte [eax], 0x3a
je 0x42ce88
jmp 0x42d2c6
mov eax, dword [edi + 0xc10]
cmp byte [eax], 0x3a
jne 0x42d2c6
push 0x105
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0x1594]
push 0x20a
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0xb84]
push 0x20a
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0xf84]
push 0x400
push 0
push eax
call fcn.004fb730
add esp, 0xc
lea eax, [ebp - 0xf84]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [edi + 0x3a48], 0
lea eax, [ebp - 0xf83]
je 0x42cf09
push dword [edi + 0xc10]
jmp 0x42cf0f
push dword [edi + 0xc0c]
push 0x103
push eax
call fcn.00503e39
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 + 0x3a48], 0
mov ebx, 0x1414
mov ecx, 0x1014
cmove ebx, ecx
add ebx, edi
je 0x42d1f0
cmp byte [ebx], 0
je 0x42d1f0
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.0046a8f0
cmp dword [ebp - 0x1c], esi
jne 0x42cfc2
nop
inc esi
cmp esi, 3
jg 0x42d0ca
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0046a8f0
cmp dword [ebp - 0x1c], 0
je 0x42cfa0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ecx
mov ebx, eax
lea eax, [ebp - 0x14c]
push 0x23
push eax
push ebx
call fcn.00405a90
mov ecx, eax
call fcn.00451880
push str._tempicon_
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.004ff77b
add esp, 0xc
lea eax, [ebp - 0x554]
push 0x208
push 0
push eax
call fcn.004fb730
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.00405a90
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x42d05f
movaps xmm0, xmmword [0x55b4e0]
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.004fb730
lea ebx, [edi + 0x408]
add esp, 0xc
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x42d090
sub esi, ecx
lea eax, [ebp - 0x1384]
push esi
push ebx
push eax
call fcn.004fb890
add esp, 0xc
lea eax, [ebp - 0x1384]
push 0x5571f0
push eax
call fcn.004fb170
add esp, 8
test eax, eax
je 0x42d121
mov dword [eax], 0x6f63692e
jmp 0x42d12c
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42d105
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42d0fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d2ec
push edx
push ecx
call fcn.004f8ec4
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, 0x80004005
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x42d2ce
mov dword [ebp + esi - 0x1384], 0x6f63692e
lea eax, [ebp - 0x1384]
push eax
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.004ff77b
add esp, 0xc
mov dword [ebp - 0x1598], 0
lea eax, [ebp - 0x14c]
push 0x5571f4
push eax
lea eax, [ebp - 0x1598]
push eax
call fcn.00503d36
mov ecx, dword [ebp - 0x1598]
add esp, 0xc
test ecx, ecx
je 0x42d19b
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.004ff3ad
push dword [ebp - 0x1598]
call fcn.004fedde
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42d1d6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42d1cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d2f1
push edx
push ecx
call fcn.004f8ec4
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 0x42d211
lea eax, [ebp - 0xf84]
push eax
lea eax, [ebp - 0x14c]
push 0x105
push eax
call fcn.00503e39
add esp, 0xc
lea ebx, [edi + 0x408]
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.004fb730
add esp, 0xc
lea eax, [ebp - 0x974]
push 0x20a
push 0
push eax
call fcn.004fb730
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.005000cb
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.0042d300
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.004f8955
mov esp, ebp
pop ebp
ret 4
call fcn.00500017
call fcn.00500017
int3