Function at 0x41c740
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 0x41c9cd
cmp eax, 0x104
jb 0x41c9cd
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41c783
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c771
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 0x41c7f9
push dword [ebp + 0xc]
test esi, esi
mov eax, 0x49ccf0
push ebx
cmovg eax, edi
push 0
push eax
lfence
call fcn.0041ca90
add esp, 0x10
test eax, eax
jne 0x41c7d1
push str.VNLGetConfigurationFilePath:_could_not_obtain_system_path
push 1
call fcn.00446b80
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.00446b80
push ebx
push str.VNLGetConfigurationFilePath:_path:__S
push 0x20
call fcn.00446b80
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
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c800
mov edi, dword [ebp + 0x14]
sub esi, ecx
sar esi, 1
test edi, edi
je 0x41c854
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41c84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0xb7
je 0x41c843
push eax
push str.VNLGetConfigurationFilePath:_cant_create_all_users_directory:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41c864
push str.VNLGetConfigurationFilePath:_all_users_directory_already_exists:__S
jmp 0x41c85a
push ebx
push str.VNLGetConfigurationFilePath:_created_all_users_directory:__S
push 2
jmp 0x41c85c
push ebx
push str.VNLGetConfigurationFilePath:_not_creating_all_users_directory:__S
push 0x20
call fcn.00446b80
add esp, 0xc
cmp word [ebx + esi*2 - 2], 0x5c
mov ecx, dword [ebp + 0xc]
je 0x41c896
lea eax, [esi + 2]
cmp eax, ecx
jbe 0x41c88e
push str.VNLGetConfigurationFilePath:_insufficient_length_to_append_slash
push 1
call fcn.00446b80
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 0x41c8b5
push str.VNLGetConfigurationFilePath:_insufficient_length_for_name
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lfence
lea ecx, [ebx - 2]
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41c8c0
mov eax, dword [0x4a4570]
mov dword [ecx], eax
mov eax, dword [0x4a4574]
mov dword [ecx + 4], eax
mov eax, dword [0x4a4578]
mov dword [ecx + 8], eax
mov ax, word [0x4a457c]
mov word [ecx + 0xc], ax
test edi, edi
je 0x41c92d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41c925
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0xb7
je 0x41c91e
push eax
push str.VNLGetConfigurationFilePath:_cant_create_directory:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x41c93d
push str.VNLGetConfigurationFilePath:_directory_already_exists:__S
jmp 0x41c933
push ebx
push str.VNLGetConfigurationFilePath:_created_directory:__S
jmp 0x41c933
push ebx
push str.VNLGetConfigurationFilePath:_not_creating_directory:__S
push 0x20
call fcn.00446b80
add esp, 0xc
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41c940
mov eax, dword [0x49a1f0]
mov dword [edi], eax
mov eax, dword [ebp - 4]
test eax, eax
jle 0x41c9ae
add eax, 8
add eax, esi
cmp eax, dword [ebp + 0xc]
jbe 0x41c97c
push str.VNLGetConfigurationFilePath:_insufficient_length_to_append_filename
push 1
call fcn.00446b80
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
lfence
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41c984
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41c994
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
lfence
call fcn.00446b80
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.00446b80
add esp, 0x10
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret