Function at 0x47b1d0
Capabilities:
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c4c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4e8
mov eax, dword [0x508068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x460]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x208
push 0x4f9b78
lea eax, [ebp - 0x460]
push 0x208
push eax
call fcn.004b68c3
add esp, 0x10
mov dword [ebp - 0x4e8], 0
xor eax, eax
mov dword [ebp - 0x4e4], 7
lea ecx, [ebp - 0x4f8]
mov word [ebp - 0x4f8], ax
push 8
push str.dht.dat
call fcn.00407d10
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b286
sub ecx, edx
lea eax, [ebp - 0x460]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x4f8]
call fcn.00453aa0
mov dword [ebp - 0x488], 0
xor ecx, ecx
mov dword [ebp - 0x484], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x498], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x488], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x4f8]
mov byte [ebp - 4], 2
call fcn.00407cb0
cmp dword [ebp - 0x484], 8
lea eax, [ebp - 0x498]
push 0
cmovae eax, dword [ebp - 0x498]
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4a8], esi
cmp esi, 0xffffffff
je 0x47b8d0
movq xmm0, qword [str.node_id20:]
mov eax, dword [0x51044c]
mov cx, word [0x4f9bb4]
movq qword [ebp - 0x34], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x29], xmm0
push 0
movups xmm0, xmmword [0x51043c]
mov dword [ebp - 0x19], 0
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x468]
push eax
push 0x1e
lea eax, [ebp - 0x34]
mov word [ebp - 0x2c], cx
mov cl, byte [0x4f9bb6]
push eax
push esi
movups xmmword [ebp - 0x2a], xmm0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x5102a0]
cmp edx, 0xc8
jae 0x47b41f
mov eax, dword [0x5102cc]
mov esi, dword [eax]
cmp esi, eax
je 0x47b419
mov edi, dword [ebp - 0x468]
nop dword [eax]
push edi
lea eax, [esi + 0x10]
push eax
push ecx
lea eax, [ebp - 0x4c8]
mov ecx, 0x51029c
push eax
call fcn.00454160
mov edx, dword [0x5102a0]
cmp edx, 0xc8
je 0x47b419
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x47b3fb
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x47b3f7
cmp esi, dword [eax + 8]
jne 0x47b3f7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x47b3e7
mov esi, eax
jmp 0x47b411
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x47b411
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x47b405
cmp esi, dword [0x5102cc]
jne 0x47b3b0
mov esi, dword [ebp - 0x4a8]
test edx, edx
jne 0x47b429
push esi
jmp 0x47b8ca
cmp edx, 0xc8
jbe 0x47b438
push 0x1450
jmp 0x47b43c
imul eax, edx, 0x1a
push eax
call fcn.004b5cd0
add esp, 4
mov dword [ebp - 0x4a0], eax
test eax, eax
jne 0x47b471
cmp byte [0x5102e0], al
je 0x47b8d0
push eax
push 0x4f9be4
push 0x4f9bcc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x47b8d0
push 0x510220
lea eax, [ebp - 0x464]
xor edi, edi
push eax
mov ecx, 0x51029c
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x464], edi
call fcn.00444970
mov eax, dword [ebp - 0x464]
mov ecx, dword [0x51029c]
cmp eax, ecx
jne 0x47b53e
mov eax, dword [ecx]
cmp eax, ecx
je 0x47b8b6
mov esi, dword [ebp - 0x4a0]
mov edx, eax
nop dword [eax + eax]
movups xmm0, xmmword [eax + 0x10]
add dword [ebp - 0x49c], 0x1a
lea esi, [esi + 0x1a]
inc edi
movups xmmword [esi - 0x1a], xmm0
mov ecx, dword [eax + 0x20]
mov dword [esi - 0xa], ecx
mov ecx, dword [eax + 0x28]
mov dword [esi - 6], ecx
mov cx, word [eax + 0x2c]
mov word [esi - 2], cx
cmp edi, 0xc8
je 0x47b693
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x47b519
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
jne 0x47b52f
mov ecx, eax
cmp edx, dword [eax + 8]
jne 0x47b52f
mov eax, dword [eax + 4]
mov edx, ecx
cmp byte [eax + 0xd], 0
je 0x47b505
jmp 0x47b52f
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x47b52f
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x47b523
mov edx, eax
cmp eax, dword [0x51029c]
jne 0x47b4c0
jmp 0x47b693
mov esi, dword [ebp - 0x4a0]
xor edx, edx
jmp 0x47b556
mov edi, dword [ebp - 0x4a4]
movups xmm0, xmmword [eax + 0x10]
add dword [ebp - 0x49c], 0x1a
lea esi, [esi + 0x1a]
inc edi
inc edx
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x464], edx
movups xmmword [esi - 0x1a], xmm0
mov ecx, dword [eax + 0x20]
mov dword [esi - 0xa], ecx
mov ecx, dword [eax + 0x28]
mov dword [esi - 6], ecx
mov cx, word [eax + 0x2c]
mov word [esi - 2], cx
mov edi, dword [0x51029c]
cmp edx, 0x64
je 0x47b5df
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x47b5bb
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x47b5b7
cmp eax, dword [ecx + 8]
jne 0x47b5b7
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x47b5a7
mov eax, ecx
jmp 0x47b5d7
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x47b5d1
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x47b5c5
mov edx, dword [ebp - 0x464]
cmp eax, edi
jne 0x47b550
push 0x510220
lea eax, [ebp - 0x464]
mov ecx, 0x51029c
push eax
call fcn.00444970
mov eax, dword [eax]
mov dword [ebp - 0x464], eax
cmp eax, edi
je 0x47b61a
push ecx
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0x464]
call fcn.00490c90
mov eax, dword [ebp - 0x464]
xor edi, edi
cmp eax, dword [0x51029c]
je 0x47b68d
mov esi, dword [ebp - 0x4a0]
mov edx, dword [ebp - 0x49c]
add esi, edx
movups xmm0, xmmword [eax + 0x10]
inc dword [ebp - 0x4a4]
lea esi, [esi + 0x1a]
add edx, 0x1a
inc edi
mov dword [ebp - 0x49c], edx
movups xmmword [esi - 0x1a], xmm0
mov ecx, dword [eax + 0x20]
mov dword [esi - 0xa], ecx
mov ecx, dword [eax + 0x28]
mov dword [esi - 6], ecx
mov ax, word [eax + 0x2c]
mov word [esi - 2], ax
cmp edi, 0x64
je 0x47b68d
push ecx
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0x464]
call fcn.00490c90
mov eax, dword [ebp - 0x464]
mov edx, dword [ebp - 0x49c]
cmp eax, dword [0x51029c]
jne 0x47b632
mov edi, dword [ebp - 0x4a4]
test edi, edi
je 0x47b8b6
imul esi, edi, 0x1a
lea ecx, [ebp - 0x37]
mov edx, esi
test esi, esi
jns 0x47b6b7
neg edx
call fcn.00453fb0
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x47b6be
call fcn.00453fb0
mov ecx, eax
lea eax, [ebp - 0x37]
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0xf
mov byte [ebp - 0x4e0], 0
cmp ecx, eax
je 0x47b6ef
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x4e0]
call fcn.00407e90
push 7
push str.5:nodes
push ecx
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 3
call fcn.00453b70
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4b0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x4f9bfc
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 4
call fcn.00406b90
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x480], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x470], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x4ac]
cmp edx, 0x10
jb 0x47b7b8
mov ecx, dword [ebp - 0x4c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47b7ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8f9
push edx
push ecx
call fcn.004ad677
add esp, 8
mov edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0xf
mov byte [ebp - 0x4c0], 0
cmp edx, 0x10
jb 0x47b80d
mov ecx, dword [ebp - 0x4e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47b803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b8fe
push edx
push ecx
call fcn.004ad677
add esp, 8
cmp dword [ebp - 0x46c], 0x10
lea ecx, [ebp - 0x468]
push 0
push ecx
push dword [ebp - 0x470]
lea eax, [ebp - 0x480]
cmovae eax, dword [ebp - 0x480]
push eax
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x49c]
cmp edi, esi
je 0x47b864
cmp byte [0x5102e0], 0
je 0x47b864
push 0
push str.save_dht_dat__
push str.p___count_nodes_all__26
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
lea eax, [ebp - 0x468]
push eax
push edi
push dword [ebp - 0x4a0]
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x46c]
cmp edx, 0x10
jb 0x47b8b6
mov ecx, dword [ebp - 0x480]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47b8ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b903
push edx
push ecx
call fcn.004ad677
add esp, 8
push dword [ebp - 0x4a0]
call fcn.004b5a1c
add esp, 4
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x498]
call fcn.00407cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ad19c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b5c80
call fcn.004b5c80
call fcn.004b5c80
int3