Function at 0x405830
Capabilities:
Get common file path
Read file on windows

Disassembly:
xor eax, eax
mov dword [ecx + 0xc8], 2
mov dword [ecx + 0xc4], eax
mov dword [ecx + 0xcc], eax
mov dword [ecx + 0xd0], eax
jmp 0x405aa0
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 0x40daa0
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
xor eax, eax
add esp, 8
cmp esi, eax
je 0x405ba0
push esi
push 0x14
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0xc4], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xcc], eax
mov eax, dword [esp + 0x38]
add esp, 0x14
mov dword [ebx + 0xc8], ecx
mov dword [ebx + 0xd0], edx
mov dword [ebx + 0xd4], eax
mov ecx, 0x4154e8
test ecx, ecx
je 0x405d0c
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 0x40daa0
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 esi, eax
add esp, 8
test esi, esi
je 0x405d0c
push esi
push 0x8844
push 1
push 0x4154e8
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov edx, 0x41dd58
mov ebx, 0x4154f8
mov ebp, 2
mov eax, dword [ebx]
cmp eax, 1
jne 0x405cf7
mov ecx, dword [ebx - 4]
lea edi, [ebx + 0x1c]
mov dword [edx - 4], ecx
mov ecx, dword [ebx - 8]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ax, word [ebx + 8]
mov dword [edx - 0x10], ecx
mov word [edx + 0x10], ax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x2c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
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 [edx - 0x10], ebp
je 0x405cf7
lea edi, [ebx + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 0x12]
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 [ebx + 0xa]
mov word [edx + 0x22], cx
add ebx, 0x44
add edx, 0x660
cmp ebx, 0x41dcf8
jle 0x405c75
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret