Function at 0x418a80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test ebx, ebx
je 0x418d07
cmp eax, 0x104
jb 0x418d07
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x418ac3
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418ab1
sub esi, ecx
sar esi, 1
mov dword [ebp - 4], esi
push ebx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x418b36
push dword [ebp + 0xc]
test esi, esi
mov eax, 0x495c20
push ebx
cmovg eax, edi
push 0
push eax
call fcn.00418ee0
add esp, 0x10
test eax, eax
jne 0x418b0e
push str.VNLGetConfigurationFilePath:_could_not_obtain_system_path
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.VNLGetConfigurationFilePath:_using_system_directory
push 0x10
call fcn.004439a0
push ebx
push str.VNLGetConfigurationFilePath:_path:__S
push 0x20
call fcn.004439a0
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418b40
mov edi, dword [ebp + 0x14]
sub esi, ecx
sar esi, 1
test edi, edi
je 0x418b94
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0xb7
je 0x418b83
push eax
push str.VNLGetConfigurationFilePath:_cant_create_all_users_directory:_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x418ba4
push str.VNLGetConfigurationFilePath:_all_users_directory_already_exists:__S
jmp 0x418b9a
push ebx
push str.VNLGetConfigurationFilePath:_created_all_users_directory:__S
push 2
jmp 0x418b9c
push ebx
push str.VNLGetConfigurationFilePath:_not_creating_all_users_directory:__S
push 0x20
call fcn.004439a0
add esp, 0xc
cmp word [ebx + esi*2 - 2], 0x5c
mov ecx, dword [ebp + 0xc]
je 0x418bd6
lea eax, [esi + 2]
cmp eax, ecx
jbe 0x418bce
push str.VNLGetConfigurationFilePath:_insufficient_length_to_append_slash
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + esi*2], 0x5c
inc esi
lea eax, [esi + 8]
cmp eax, ecx
jbe 0x418bf5
push str.VNLGetConfigurationFilePath:_insufficient_length_for_name
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx - 2]
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x418c00
mov eax, dword [0x49d1c0]
mov dword [ecx], eax
mov eax, dword [0x49d1c4]
mov dword [ecx + 4], eax
mov eax, dword [0x49d1c8]
mov dword [ecx + 8], eax
mov ax, word [0x49d1cc]
mov word [ecx + 0xc], ax
test edi, edi
je 0x418c6d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0xb7
je 0x418c5e
push eax
push str.VNLGetConfigurationFilePath:_cant_create_directory:_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x418c7d
push str.VNLGetConfigurationFilePath:_directory_already_exists:__S
jmp 0x418c73
push ebx
push str.VNLGetConfigurationFilePath:_created_directory:__S
jmp 0x418c73
push ebx
push str.VNLGetConfigurationFilePath:_not_creating_directory:__S
push 0x20
call fcn.004439a0
add esp, 0xc
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x418c80
mov eax, dword [0x492de4]
mov dword [edi], eax
mov eax, dword [ebp - 4]
test eax, eax
jle 0x418ceb
add eax, 8
add eax, esi
cmp eax, dword [ebp + 0xc]
jbe 0x418cbc
push str.VNLGetConfigurationFilePath:_insufficient_length_to_append_filename
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x418cc1
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418cd1
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]
push ebx
push str.VNLGetConfigurationFilePath:_path:__S
push 0x20
call fcn.004439a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.VNLGetConfigurationFilePath:_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret