Function at 0x401f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x324
mov ecx, dword [0x41139c]
mov eax, dword [str.Tally_ies_7.2]
mov edx, dword [0x4113a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov ax, word [0x4113a4]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, 0x80004005
jne 0x401fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x328]
push eax
push 0x4113a8
push 0x4113c0
push 0x4113dc
push edx
call fcn.00405e30
add esp, 0x14
add esp, 0x324
ret
mov eax, dword [0x4151e8]
cmp eax, 1
mov ecx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jne 0x40200a
lea eax, [esp]
push eax
push 2
push 0
call ecx
jmp 0x402020
cmp eax, 2
jne 0x40201c
lea edx, [esp]
push edx
push 0x17
push 0
call ecx
jmp 0x402020
mov eax, dword [esp + 4]
test eax, eax
je 0x402051
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x32c]
push 0x411400
push 0x41141c
push 0x411438
push eax
call fcn.00405e30
add esp, 0x14
add esp, 0x324
ret
mov edx, dword [esp]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40209c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x32c]
push 0x411460
push 0x411474
push 0x411490
push eax
call fcn.00405e30
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x14
push eax
call dword [ecx + 8]
add esp, 0x324
ret
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020c0
push ebx
sub eax, edx
cmp byte [esp + eax + 0x1b], 0x5c
push ebp
push esi
push edi
je 0x402108
mov eax, 0x4114b8
mov edx, eax
jmp 0x4020e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020e0
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4020f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402110
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402120
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 + 0x28]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x338]
push eax
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x402528
xor eax, eax
jmp 0x402160
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x12c], cl
inc eax
test cl, cl
jne 0x402160
mov eax, 0x4114bc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402177
lea edi, [esp + 0x12c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402188
mov ebx, dword [esp + 0x33c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea ebp, [esp + 0x230]
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
sub ebp, ebx
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x4021b0
mov eax, 0x4114cc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021c1
lea edi, [esp + 0x230]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4021d2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x238]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x340]
push eax
push ecx
call fcn.00401080
add esp, 0x10
xor eax, eax
jmp 0x402210
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x12c], cl
inc eax
test cl, cl
jne 0x402210
mov eax, 0x4114d8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402227
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402238
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x402252
mov eax, str.TallyRef.chm
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402263
lea edi, [esp + 0x230]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402274
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x238]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x340]
push eax
push ecx
call fcn.00401080
mov eax, dword [0x4151e8]
add esp, 0x10
cmp eax, 1
jne 0x402331
xor eax, eax
jmp 0x4022c0
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x12c], cl
inc eax
test cl, cl
jne 0x4022c0
mov eax, str._tallylic9xserver.lnk
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022d7
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4022e8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x402302
mov eax, 0x411514
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402313
lea edi, [esp + 0x230]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402324
jmp 0x4023ac
cmp eax, 2
jne 0x4023e0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x12c], cl
inc eax
test cl, cl
jne 0x402340
mov eax, str._tallylicserver.lnk
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402357
lea edi, [esp + 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402368
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x402382
mov eax, 0x411540
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402393
lea edi, [esp + 0x230]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4023a4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x238]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x340]
push eax
push ecx
call fcn.00401080
mov eax, dword [0x4151e8]
add esp, 0x10
cmp eax, 1
jne 0x4023ee
lea edx, [esp + 0x10]
push edx
push 0
jmp 0x4023fa
cmp eax, 2
jne 0x402437
lea eax, [esp + 0x10]
push eax
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x402437
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x338]
push eax
push 0x411554
push 0x411570
push 0x41158c
push ecx
call fcn.00405e30
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x402486
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x338]
push eax
push 0x4115c0
push str.CreateShellGroupAndShortcut
push 0x4115f0
push ecx
call fcn.00405e30
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
add esp, 0x14
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, str.Tally_7.2.lnk
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024a6
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4024b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
mov edi, edi
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x4024d0
mov eax, str.Tally72.exe
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024e1
lea edi, [esp + 0x230]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4024f2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x238]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x340]
push eax
push ecx
call fcn.00401080
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret