Function at 0x401160
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x490
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48c], eax
push esi
mov esi, dword [esp + 0x4a0]
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401182
sub eax, edx
je 0x401206
push 0x12c
lea eax, [esp + 0x74]
push 0
push eax
call fcn.004019c0
lea edx, [esp + 0x7c]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011b0
lea eax, [esp + 0x70]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4011c0
mov ecx, dword [str.518Fang.exe]
mov edx, dword [0x4081f0]
mov dword [eax], ecx
mov ecx, dword [0x4081f4]
mov dword [eax + 4], edx
mov dl, byte [0x4081f8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x70]
push 0
push eax
call fcn.004019a6
add esp, 8
cmp eax, 0xffffffff
je 0x401206
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor ecx, ecx
push 0x12c
push ecx
lea edx, [esp + 0x370]
push edx
mov byte [esp + 0x14], 0
mov word [esp + 0x15], cx
call fcn.004019c0
add esp, 0xc
lea eax, [esp + 0x368]
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x64
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebx]
mov dl, byte [esp + eax + 0xc]
dec eax
cmp dl, 0x5c
jne 0x401250
push 0x104
mov byte [esp + eax + 0x11], 0
lea eax, [esp + 0x268]
push 0
push eax
call fcn.004019c0
add esp, 0xc
xor eax, eax
jmp 0x401280
mov cl, byte [esp + eax + 0xc]
mov byte [esp + eax + 0x264], cl
inc eax
test cl, cl
jne 0x401280
lea eax, [esp + 0x264]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401298
mov ecx, dword [str.Publisher_]
mov edx, dword [0x4081e4]
mov dword [eax], ecx
mov ecx, dword [0x4081e8]
mov dword [eax + 4], edx
lea edx, [esp + 8]
push edx
mov dword [eax + 8], ecx
call fcn.00401060
add esp, 4
test al, al
je 0x40144f
lea eax, [esp + 8]
push 0x4081dc
push eax
call section..text
add esp, 8
test al, al
je 0x40133c
lea eax, [esp + 0x264]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4012f0
mov ecx, dword [str.PublisherAssitant.exe]
mov edx, dword [0x4081c8]
mov dword [eax], ecx
mov ecx, dword [0x4081cc]
mov dword [eax + 4], edx
mov edx, dword [0x4081d0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4081d4]
mov dword [eax + 0xc], edx
mov dx, word [0x4081d8]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 0x264]
push eax
jmp 0x401501
push 0x1f4
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.004019c0
lea eax, [esp + 0x270]
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401360
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401370
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x70]
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401390
mov edx, dword [str.FetionVM.exe]
mov ecx, dword [0x4081b8]
mov dword [eax], edx
mov edx, dword [0x4081bc]
mov dword [eax + 4], ecx
mov cl, byte [0x4081c0]
lea edi, [esp + 0x70]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013c0
mov dx, word [0x4081b0]
lea eax, [esp + 0x368]
mov word [edi], dx
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4013e0
mov ecx, dword [str.518Fang.exe]
mov edx, dword [0x4081f0]
mov dword [eax], ecx
mov ecx, dword [0x4081f4]
mov dword [eax + 4], edx
mov dl, byte [0x4081f8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x368]
push 0
push eax
call fcn.004019a6
lea edi, [esp + 0x78]
add esp, 8
dec edi
test eax, eax
jne 0x401433
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401426
jmp 0x4014ee
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401433
mov ecx, 8
mov esi, str...PublisherPublisherAssitant.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4014fc
push 0x1f4
lea edx, [esp + 0x74]
push 0
push edx
call fcn.004019c0
lea eax, [esp + 0x270]
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401480
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x70]
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4014a0
mov ecx, dword [str.FetionVM.exe]
mov edx, dword [0x4081b8]
mov dword [eax], ecx
mov ecx, dword [0x4081bc]
mov dword [eax + 4], edx
mov dl, byte [0x4081c0]
lea edi, [esp + 0x70]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4014d0
mov ax, word [0x4081b0]
mov word [edi], ax
lea edi, [esp + 0x70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4014e6
mov ecx, 8
mov esi, str..PublisherPublisherAssitant.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x70]
push ecx
call fcn.00401050
mov ecx, dword [esp + 0x498]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040190e
add esp, 0x490
ret 0x10