Function at 0x412129
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push edi
mov dword [ebp - 0x138], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416c30
jmp 0x412158
lea ecx, [ebp - 4]
call fcn.0043b4a0
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416d80
push eax
lea ecx, [ebp - 4]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x4121cb
lea ecx, [ebp - 4]
call fcn.00417fc0
mov dword [ebp - 8], eax
push 0x4c4788
mov edx, dword [ebp - 8]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4121ae
mov eax, dword [ebp - 8]
cmp dword [eax], 0x73
je 0x4121c7
push 0x4c4798
mov ecx, dword [ebp - 8]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4121c9
jmp 0x4121cb
jmp 0x412150
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416d80
push eax
lea ecx, [ebp - 4]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x41247a
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41222e
jmp 0x41247a
push 0x4c47a0
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00415440
push 0x4c47b8
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x110], eax
push 0x4c47bc
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 0x4c4828
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416c30
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x4122b0
lea ecx, [ebp - 4]
call fcn.0043b4a0
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416d80
push eax
lea ecx, [ebp - 4]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x41235f
lea ecx, [ebp - 4]
call fcn.00417fc0
mov dword [ebp - 0x114], eax
push 0x4c484c
mov edx, dword [ebp - 0x114]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x412313
mov eax, dword [ebp - 0x114]
cmp dword [eax], 0x73
je 0x41232f
push 0x4c485c
mov ecx, dword [ebp - 0x114]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41235a
mov edx, dword [ebp - 0x114]
add edx, 4
push edx
mov eax, dword [ebp - 0x114]
add eax, 0x108
push eax
push str._s__t__s_n
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
jmp 0x4122a8
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0
push 0x4c4870
push 0x4c487c
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.00402b50
push 0x104
push 0x4c48c4
push 0x4c48d0
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.00402b50
cmp eax, 7
jne 0x41247a
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416c30
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416d80
push eax
lea ecx, [ebp - 4]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x41247a
lea ecx, [ebp - 4]
call fcn.00417fc0
mov dword [ebp - 0x118], eax
push 0x4c4904
mov eax, dword [ebp - 0x118]
add eax, 0x108
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41242e
mov ecx, dword [ebp - 0x118]
cmp dword [ecx], 0x73
je 0x41244a
push str.Virus.
mov edx, dword [ebp - 0x118]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41246d
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.0047e160
mov edx, dword [eax]
mov dword [ebp - 4], edx
jmp 0x412475
lea ecx, [ebp - 4]
call fcn.0043b4a0
jmp 0x4123cc
pop edi
mov esp, ebp
pop ebp
ret