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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x4b6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00482260
add esp, 4
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x48266e
mov dword [ebp - 0x230], 0
jmp 0x48267d
mov ecx, dword [ebp - 0x230]
add ecx, 1
mov dword [ebp - 0x230], ecx
lea edx, [ebp - 0x2ac]
push edx
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x482706
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [ebp - 0x2ac]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x110]
add eax, 0xffffffff
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2b5], dl
add dword [ebp - 0x2b4], 1
cmp byte [ebp - 0x2b5], 0
jne 0x4826c6
mov edi, dword [ebp - 0x2b4]
mov eax, dword [str.Microsoft_]
mov dword [edi], eax
mov ecx, dword [0x4a97d4]
mov dword [edi + 4], ecx
mov edx, dword [0x4a97d8]
mov dword [edi + 8], edx
jmp 0x482711
mov eax, dword [0x4a97dc]
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x2bc], ecx
lea edx, [ebp - 0x218]
mov dword [ebp - 0x2c0], edx
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2bc]
mov dl, byte [ecx]
mov byte [ebp - 0x2c5], dl
mov eax, dword [ebp - 0x2c0]
mov cl, byte [ebp - 0x2c5]
mov byte [eax], cl
mov edx, dword [ebp - 0x2bc]
add edx, 1
mov dword [ebp - 0x2bc], edx
mov eax, dword [ebp - 0x2c0]
add eax, 1
mov dword [ebp - 0x2c0], eax
cmp byte [ebp - 0x2c5], 0
jne 0x482735
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ecx
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], edx
mov eax, dword [ebp - 0x2cc]
mov cl, byte [eax]
mov byte [ebp - 0x2d1], cl
add dword [ebp - 0x2cc], 1
cmp byte [ebp - 0x2d1], 0
jne 0x48278d
mov edx, dword [ebp - 0x2cc]
sub edx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], edx
lea ecx, [ebp - 0x218]
add ecx, 0xffffffff
mov dword [ebp - 0x2e0], ecx
mov edx, dword [ebp - 0x2e0]
mov al, byte [edx + 1]
mov byte [ebp - 0x2e1], al
add dword [ebp - 0x2e0], 1
cmp byte [ebp - 0x2e1], 0
jne 0x4827d8
mov edi, dword [ebp - 0x2e0]
mov esi, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x2dc]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x22b], eax
mov dword [ebp - 0x227], eax
mov byte [ebp - 0x223], al
push 0xa
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.MSVCR90.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
add ecx, 1
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2e8]
mov al, byte [edx]
mov byte [ebp - 0x2ed], al
add dword [ebp - 0x2e8], 1
cmp byte [ebp - 0x2ed], 0
jne 0x482866
mov ecx, dword [ebp - 0x2e8]
sub ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x220], edx
mov eax, dword [str.A7ws9dPA]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [0x4a9680]
mov dword [ebp - 0x2a4], ecx
lea edi, [ebp - 0x2a0]
mov ecx, 0xd
mov esi, str.QAZWSXEDCRFVTGBYHNUJMIKOLPqwertyuiop_asdfghjklzxcvbnm
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x26b]
mov ecx, 0xd
mov esi, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO_PQRSTUVWXYZ
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x2b0], 0
jmp 0x4828fa
mov edx, dword [ebp - 0x2b0]
add edx, 1
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x220]
sub eax, 1
cmp dword [ebp - 0x2b0], eax
jg 0x482944
mov ecx, dword [ebp - 0x2b0]
movzx edx, byte [ebp + ecx - 0x22c]
mov eax, dword [ebp - 0x2b0]
and eax, 0x80000007
jns 0x48292b
dec eax
or eax, 0xfffffff8
inc eax
movsx ecx, byte [ebp + eax - 0x2a8]
xor edx, ecx
mov eax, dword [ebp - 0x2b0]
mov byte [ebp + eax - 0x22c], dl
jmp 0x4828eb
push 0x4a9888
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x48296c
xor eax, eax
jmp 0x4829a1
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
push 1
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408de6
mov esp, ebp
pop ebp
ret