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

Disassembly:
mov eax, 0x41df2c
call fcn.0040b998
sub esp, 0x27c
mov dl, byte [0x42868c]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x287]
mov byte [ebp - 0x288], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x183]
mov byte [ebp - 0x184], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x427530]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.00401000
push str.__vInstall_SoftwareFirst
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004013fd
lea eax, [ebp - 0x184]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x184]
push str.infother
push eax
mov esi, 0x425080
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.0040becd
add esp, 0x10
lea eax, [ebp - 0x184]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40444a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x184]
push eax
push str.CreateDirectory__s_:_u
call fcn.004013fd
add esp, 0xc
mov edi, 0x42a254
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.0040bb30
lea eax, [ebp - 0x288]
push 0x42a560
push eax
call fcn.0040bb40
add esp, 0x10
lea ecx, [ebp - 0x80]
push 0x614
push ebx
push 2
call fcn.0040110a
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x80]
push eax
call fcn.004010cd
lea eax, [ebp - 0x288]
lea ecx, [ebp - 0x80]
push eax
call fcn.00401090
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040112c
cmp eax, ebx
jne 0x4044c5
push ebx
push ebx
push str.FAIL_SHFileOperation_FO_COPY__s_:_d
call fcn.004013fd
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00401127
lea eax, [ebp - 0x184]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x184]
push str.OptionsInstall
push eax
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.0040becd
add esp, 0x10
lea eax, [ebp - 0x184]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404528
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x184]
push eax
push str.CreateDirectory__s_:_u
call fcn.004013fd
add esp, 0xc
push edi
call fcn.0040c0a0
cmp byte [eax + 0x42a253], 0x5c
pop ecx
je 0x404545
push 0x42503c
push edi
call fcn.0040bb40
pop ecx
pop ecx
push 0x425a98
push edi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041509d
add esp, 0x10
lea ecx, [ebp - 0x80]
push 0x614
push ebx
push 2
call fcn.0040110a
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x80]
push eax
call fcn.004010cd
push dword [ebp - 0x10]
lea ecx, [ebp - 0x80]
call fcn.00401090
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040112c
cmp eax, ebx
jne 0x4045a9
push ebx
push ebx
push str.FAIL_SHFileOperation_FO_COPY__s_:_d
call fcn.004013fd
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00401127
lea eax, [ebp - 0x184]
push eax
call fcn.0040a0c5
mov dword [esp], 0x425a7c
call fcn.004013fd
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x80]
call fcn.0040104b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00415c12
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret