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

Disassembly:
sub esp, 0xf0c
mov eax, dword [0x463610]
xor eax, esp
mov dword [esp + 0xf08], eax
push ebp
mov ebp, dword [esp + 0xf14]
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00436760
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4078b0
sub eax, edx
jne 0x4078ef
mov edx, dword [str.c:windows_system32]
mov eax, dword [0x457724]
mov ecx, dword [0x457728]
mov dword [esp + 0x10], edx
mov edx, dword [0x45772c]
mov dword [esp + 0x14], eax
mov eax, dword [0x457730]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x40793f
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4078f6
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
je 0x407922
lea eax, [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407910
sub eax, edx
cmp byte [esp + eax + 0xf], 0x2f
jne 0x40793f
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407930
sub eax, edx
mov byte [esp + eax + 0xf], cl
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x114], cl
add eax, 1
test cl, cl
jne 0x407941
mov edx, dword [0x457680]
mov ecx, dword [str.Program_Files]
mov eax, dword [0x457684]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x11b], edx
mov dword [esp + 0x117], ecx
mov cx, word [0x457688]
push 0
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x127], eax
mov word [esp + 0x12b], cx
call edi
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4079a4
sub eax, edx
push ebx
mov esi, eax
call fcn.0040b180
xor edx, edx
mov ecx, 0xc8
div ecx
mov eax, edx
shl eax, 4
sub eax, edx
lea ecx, [eax*2 + str.Installing]
push ecx
lea edx, [esp + esi + 0x11c]
push 0x45768c
push edx
call fcn.00432a00
add esp, 0x10
push 0
lea eax, [esp + 0x118]
push eax
call edi
lea eax, [esp + 0x114]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407a00
sub eax, ecx
push str.TestSystem.ini
lea ecx, [esp + eax + 0x118]
push 0x45768c
push ecx
call fcn.00432a00
push 0x200
lea edx, [esp + 0x524]
push 0
push edx
call fcn.00436760
push 0x200
lea eax, [esp + 0x930]
push 0
push eax
call fcn.00436760
push 0x200
lea ecx, [esp + 0x73c]
push 0
push ecx
call fcn.00436760
add esp, 0x30
xor eax, eax
jmp 0x407a70
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x514], cl
add eax, 1
test cl, cl
jne 0x407a70
lea edx, [esp + 0x514]
push 0x5c
push edx
call fcn.00432fa0
add esp, 8
test eax, eax
je 0x407aa9
add eax, 1
push str.Web_tipw.gif
push eax
call fcn.00432a00
add esp, 8
xor eax, eax
jmp 0x407ab0
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x914], cl
add eax, 1
test cl, cl
jne 0x407ab0
lea eax, [esp + 0x914]
push 0x5c
push eax
call fcn.00432fa0
add esp, 8
test eax, eax
je 0x407ae9
add eax, 1
push str.Help_time.chm
push eax
call fcn.00432a00
add esp, 8
xor eax, eax
jmp 0x407af0
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x714], cl
add eax, 1
test cl, cl
jne 0x407af0
lea ecx, [esp + 0x714]
push 0x5c
push ecx
call fcn.00432fa0
add esp, 8
test eax, eax
je 0x407b29
add eax, 1
push str.systemPEN.DRV
push eax
call fcn.00432a00
add esp, 8
xor eax, eax
jmp 0x407b30
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0xd14], cl
add eax, 1
test cl, cl
jne 0x407b30
lea edx, [esp + 0xd14]
push 0x5c
push edx
call fcn.00432fa0
add esp, 8
test eax, eax
je 0x407b69
add eax, 1
push str.Symbolsdllmgcm83.IA64.pdb
push eax
call fcn.00432a00
add esp, 8
test ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jge 0x407b9d
mov edi, dword [esp + 0xf20]
test edi, edi
jge 0x407c76
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0xf08]
xor ecx, esp
call fcn.0043197e
add esp, 0xf0c
ret
push ebx
push ebp
lea eax, [esp + 0xb1c]
push str._d_s
push eax
call fcn.00432a00
lea ecx, [esp + 0xb24]
push ecx
call fcn.0040b180
push eax
push ebp
lea edx, [esp + 0x330]
push str._d__d
push edx
call fcn.00432a00
add esp, 0x24
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x318]
push ecx
push str.erwq
push str.dsfd
call esi
lea edx, [esp + 0x514]
push edx
lea eax, [esp + 0x318]
push eax
push str.poio
push str.sdfa
call esi
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x318]
push edx
push str.sdfe
push str.dfsd
call esi
lea eax, [esp + 0x714]
push eax
lea ecx, [esp + 0x318]
push ecx
push str.njuk
push str.bhyg
call esi
lea edx, [esp + 0xd14]
push edx
lea eax, [esp + 0x318]
push eax
push str.njuk
push str.bhyg
call esi
cmp dword [esp + 0xf20], 0
jl 0x407d3a
mov edi, dword [esp + 0xf20]
push ebx
push edi
lea ecx, [esp + 0xb1c]
push str._d_s
push ecx
call fcn.00432a00
lea edx, [esp + 0xb24]
push edx
call fcn.0040b180
push eax
push edi
lea eax, [esp + 0x330]
push str._d__d
push eax
call fcn.00432a00
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x318]
push edx
push str.erwq1
push str.dsfd
call esi
lea eax, [esp + 0x514]
push eax
lea ecx, [esp + 0x318]
push ecx
push str.poio1
push str.sdfa
call esi
lea edx, [esp + 0x914]
push edx
lea eax, [esp + 0x318]
push eax
push str.sdfe1
push str.dfsd
call esi
lea ecx, [esp + 0x714]
push ecx
lea edx, [esp + 0x318]
push edx
push str.njuk1
push str.bhyg
call esi
lea eax, [esp + 0xd14]
push eax
lea ecx, [esp + 0x318]
push ecx
push str.njuk1
push str.bhyg
call esi
mov ecx, dword [esp + 0xf14]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0043197e
add esp, 0xf0c
ret