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

Disassembly:
sub esp, 0x98
xor eax, eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
mov ebx, ecx
push edi
mov ecx, 0x20
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x80
push eax
call ebp
mov edi, 0x40daa4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40daa8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.vcomGob.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x405e0a
mov eax, dword [ebx + 0xc8]
mov ecx, dword [ebx + 0xc4]
mov edx, dword [ebx + 0xcc]
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xd0]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0xd4]
push 0x14
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
cmp dword [esp + 0xac], 2
jne 0x405f7b
mov ecx, 0x4154e8
test ecx, ecx
je 0x405f7b
mov ecx, 0x2211
xor eax, eax
mov edi, 0x4154e8
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x28]
push 0x80
push edx
rep stosd dword es:[edi], eax
call ebp
mov edi, 0x40daa4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40daa8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.vcomDB.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405f7b
mov ebx, 0x4154f8
mov edx, 0x41dd58
mov ecx, dword [edx - 4]
mov eax, dword [edx]
mov dword [ebx - 4], ecx
mov ecx, dword [edx + 4]
mov dword [ebx], eax
mov eax, dword [edx - 0x10]
mov dword [ebx + 4], ecx
mov cx, word [edx + 0x10]
mov dword [ebx - 8], eax
mov word [ebx + 8], cx
lea edi, [edx + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx - 8], 2
je 0x405f49
lea edi, [edx + 0x12]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [edx + 0x22]
mov word [ebx + 0xa], cx
add edx, 0x660
add ebx, 0x44
cmp edx, 0x4e9d58
jle 0x405ecb
push ebp
push 0x8844
push 1
push 0x4154e8
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4