Function at 0x401420
Capabilities:
Get common file path
Get disk information
Get hostname
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bbec
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8e4], edi
mov dword [edi + 0x1c], 0xf
mov dword [edi + 0x18], 0
mov dword [ebp - 0x8e8], edi
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0xf
mov dword [edi + 0x30], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x4c], 0xf
mov dword [edi + 0x48], 0
mov byte [edi + 0x38], 0
mov dword [edi + 0x64], 0xf
mov dword [edi + 0x60], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], 0
mov byte [edi + 0x68], 0
lea eax, [edi + 0x80]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov dword [ebp - 0x8e0], eax
mov byte [eax], 0
lea eax, [edi + 0x98]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov dword [ebp - 0x8d4], eax
mov byte [eax], 0
lea esi, [edi + 0xb0]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8d8]
mov byte [ebp - 4], 7
push eax
push 0
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
push 0
push 0
movdqu xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x17], 0
movq qword [ebp - 0x1f], xmm0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x8d8]
lea eax, [ebp - 0x30]
push 0x422628
push eax
call fcn.00409273
add esp, 0xc
mov dword [ebp - 0x8dc], 0x200
lea eax, [ebp - 0x8dc]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x401597
movdqu xmm0, xmmword [str.errorretrieving]
movdqu xmmword [ebp - 0x440], xmm0
push 0x105
lea eax, [ebp - 0x138]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 0x138]
test eax, eax
lea eax, [ebp - 0x240]
mov edx, 0x727265
push eax
push 0
push 0
push 0x1a
cmove ecx, edx
push 0
mov dword [ebp - 0x138], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, 0x102
mov word [edi + 4], ax
mov eax, dword [0x4227e8]
cmp byte [eax], 0
jne 0x4015ed
xor edx, edx
jmp 0x4015fb
mov edx, eax
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4015f2
sub edx, edi
mov edi, dword [ebp - 0x8d4]
mov ecx, edi
push edx
push eax
call fcn.00403090
push 1
push 0x42263c
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 0xf
mov dword [ebp - 0x860], 0
mov byte [ebp - 0x870], 0
call fcn.00403090
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x858]
push 1
push 0x42263c
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
call fcn.00403090
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x8b8]
call fcn.004034a0
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x888]
call fcn.00403530
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x8a0]
call fcn.004035b0
push edi
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8d0]
call fcn.00403660
mov ecx, dword [ebp - 0x8e0]
add esp, 0xc
push eax
call fcn.00402980
cmp dword [ebp - 0x8bc], 0x10
jb 0x4016e5
push dword [ebp - 0x8d0]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x88c], 0x10
mov dword [ebp - 0x8bc], 0xf
mov dword [ebp - 0x8c0], 0
mov byte [ebp - 0x8d0], 0
jb 0x401717
push dword [ebp - 0x8a0]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x874], 0x10
mov dword [ebp - 0x88c], 0xf
mov dword [ebp - 0x890], 0
mov byte [ebp - 0x8a0], 0
jb 0x401749
push dword [ebp - 0x888]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x8a4], 0x10
mov dword [ebp - 0x874], 0xf
mov dword [ebp - 0x878], 0
mov byte [ebp - 0x888], 0
jb 0x40177b
push dword [ebp - 0x8b8]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x844], 0x10
mov dword [ebp - 0x8a4], 0xf
mov dword [ebp - 0x8a8], 0
mov byte [ebp - 0x8b8], 0
jb 0x4017ad
push dword [ebp - 0x858]
call fcn.0040a3d1
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x85c], 0x10
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
jb 0x4017e3
push dword [ebp - 0x870]
call fcn.0040a3d1
add esp, 4
push 1
push 0x42263c
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], 0xf
mov dword [ebp - 0x860], 0
mov byte [ebp - 0x870], 0
call fcn.00403090
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x858]
push 1
push 0x42263c
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
call fcn.00403090
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x8a0]
call fcn.004034a0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x888]
call fcn.00403530
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x8b8]
call fcn.004035b0
add esp, 8
mov ecx, esi
push eax
call fcn.00402980
cmp dword [ebp - 0x8a4], 0x10
jb 0x4018a8
push dword [ebp - 0x8b8]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x874], 0x10
mov dword [ebp - 0x8a4], 0xf
mov dword [ebp - 0x8a8], 0
mov byte [ebp - 0x8b8], 0
jb 0x4018da
push dword [ebp - 0x888]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x88c], 0x10
mov dword [ebp - 0x874], 0xf
mov dword [ebp - 0x878], 0
mov byte [ebp - 0x888], 0
jb 0x40190c
push dword [ebp - 0x8a0]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x844], 0x10
mov dword [ebp - 0x88c], 0xf
mov dword [ebp - 0x890], 0
mov byte [ebp - 0x8a0], 0
jb 0x40193e
push dword [ebp - 0x858]
call fcn.0040a3d1
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x85c], 0x10
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
jb 0x401974
push dword [ebp - 0x870]
call fcn.0040a3d1
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x40197c
mov esi, dword [esi]
push esi
call fcn.00401ce0
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.00401c10
push 0
push 0x1a
lea eax, [ebp - 0x840]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x840]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4019a6
mov eax, dword [0x42264c]
mov dword [ecx], eax
mov eax, dword [0x422650]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x138]
push 0x422654
push eax
call fcn.0040a0f8
push 2
mov esi, eax
push 0
push esi
call fcn.0040aa3c
push esi
call fcn.0040a941
push 0
mov edi, eax
push 0
push esi
mov dword [ebp - 0x8d4], edi
call fcn.0040aa3c
push edi
call fcn.0040997c
push esi
push dword [ebp - 0x8d4]
mov edi, eax
push 1
push edi
call fcn.0040a2d2
push esi
call fcn.0040ab76
mov edx, dword [ebp - 0x8d4]
add esp, 0x34
mov ecx, edi
call fcn.00401310
lea eax, [ebp - 0x840]
push 0x422664
push eax
call fcn.0040a0f8
mov esi, eax
push esi
push dword [ebp - 0x8d4]
push 1
push edi
call fcn.0040a52f
push esi
call fcn.0040ab76
mov esi, dword [ebp - 0x8e4]
add esp, 0x24
cmp byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x8d8]
mov dword [esi], eax
jne 0x401a64
xor ecx, ecx
jmp 0x401a79
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a70
sub ecx, edx
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x20]
call fcn.00403090
cmp byte [ebp - 0x440], 0
jne 0x401a93
xor ecx, ecx
jmp 0x401aa9
lea ecx, [ebp - 0x440]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401aa0
sub ecx, edx
push ecx
lea eax, [ebp - 0x440]
push eax
lea ecx, [esi + 0x38]
call fcn.00403090
cmp byte [ebp - 0x138], 0
jne 0x401ac6
xor ecx, ecx
jmp 0x401ad9
lea ecx, [ebp - 0x138]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ad0
sub ecx, edx
push ecx
lea eax, [ebp - 0x138]
push eax
lea ecx, [esi + 0x68]
call fcn.00403090
cmp byte [ebp - 0x240], 0
jne 0x401af6
xor ecx, ecx
jmp 0x401b09
lea ecx, [ebp - 0x240]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b00
sub ecx, edx
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [esi + 0x50]
call fcn.00403090
mov eax, esi
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.00409264
mov esp, ebp
pop ebp
ret