Function at 0x405d00
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413f67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov eax, dword [0x4191b4]
push ebx
push esi
push edi
push 0x103
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
push 0x419dac
mov dword [esp + 0x298], eax
mov dword [esp + 0x18], str.GetDuplicateDir
call fcn.00408100
push str.GetDuplicateDir
push str._s:_Enter
xor ebx, ebx
push 0x419da0
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x1ed
call fcn.00403010
mov ecx, dword [0x419da4]
add esp, 0x18
inc ecx
mov dword [0x419da4], ecx
xor eax, eax
mov word [esp + 0x80], bx
mov ecx, 0x81
lea edi, [esp + 0x82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x84]
push eax
push str._appdata_
mov dword [esp + 0x2a8], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x406032
mov edi, 7
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x2a0], 1
call fcn.00405990
add esp, 4
test eax, eax
push 0x103
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
push 0x419dac
je 0x405ff5
call fcn.00408100
lea edx, [esp + 0x70]
push edx
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x1f7
call fcn.00404460
push eax
push str.MainCompName___s
push 0x419da0
call fcn.00403010
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.00408082
add esp, 0x20
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403eb0
push 0x4157b8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x2a8], 2
call fcn.00404080
lea ecx, [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x2b4], 3
call fcn.00404130
add esp, 0x18
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x2a8], 4
call fcn.00403da0
cmp dword [esp + 0x44], 8
jb 0x405ec2
mov eax, dword [esp + 0x30]
push eax
call fcn.00407316
add esp, 4
cmp dword [esp + 0x60], 8
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x405ee3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00407316
add esp, 4
cmp dword [esp + 0x28], 8
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov byte [esp + 0x29c], 1
jb 0x405f0c
mov edx, dword [esp + 0x14]
push edx
call fcn.00407316
add esp, 4
push esi
call fcn.004033c0
add esp, 4
test eax, eax
jne 0x405fb1
cmp dword [esi + 0x18], 8
jb 0x405f28
mov eax, dword [esi + 4]
jmp 0x405f2b
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov ecx, 0x419da0
je 0x405f6e
push 0x1fe
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
call fcn.00402fe0
push esi
call fcn.00404460
push eax
push str.Create_Directory___s__Succeeded
push 0x419da0
call fcn.00403010
add esp, 0x10
mov esi, 1
jmp 0x40601c
push 0x203
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
call fcn.00402fe0
push esi
call fcn.00404460
push eax
push str.Create_Directory___s__Failed
push 0x419da0
call fcn.00403010
push 0x415588
call fcn.00408082
add esp, 0x14
push eax
push 0x415588
mov ecx, esi
call fcn.00403eb0
xor esi, esi
jmp 0x40601c
push 0x103
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
push 0x419dac
call fcn.00408100
push esi
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x20a
call fcn.00404460
push eax
push str.tstrDupDir__s__Already_exist
push 0x419da0
call fcn.00403010
add esp, 0x1c
mov esi, 1
jmp 0x40601c
call fcn.00408100
push str.GetMainComDisplayName_Failed
push 0x419da0
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x210
call fcn.00403010
add esp, 0x14
cmp dword [esp + 0x7c], 8
jb 0x40606d
mov eax, dword [esp + 0x68]
push eax
call fcn.00407316
add esp, 4
jmp 0x40606d
push 0x103
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
push 0x419dac
call fcn.00408100
push 0x4158f4
push str.ExpandEnvironmentStrings__s__Failed
push 0x419da0
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x215
call fcn.00403010
add esp, 0x18
push 0x103
push str.Windows_tsp_product1.7_Code_srcoucouc.cpp
push 0x419dac
call fcn.00408100
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [0x419eaf], bl
mov dword [0x419da8], 0x217
call fcn.00403110
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28c]
mov eax, esi
call fcn.00407a34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret