Function at 0x401f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4494
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x53132c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, 0xf
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401fd2
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00404270
push 0x51301c
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 4], ebx
call fcn.00405a00
push str.USTechSupportLog
push eax
lea ecx, [ebp - 0x184]
push ecx
mov byte [ebp - 4], 1
call fcn.00405a00
push 0x51301c
push eax
lea edx, [ebp - 0x1bc]
push edx
mov byte [ebp - 4], 2
call fcn.00405a00
add esp, 0x24
mov esi, 0x10
cmp dword [ebp - 0x170], esi
jb 0x402054
mov eax, dword [ebp - 0x184]
push eax
call fcn.00458691
add esp, 4
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x138], esi
jb 0x40207d
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00458691
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x11c], esi
jb 0x4020a6
mov edx, dword [ebp - 0x130]
push edx
call fcn.00458691
add esp, 4
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1bc]
cmp dword [ebp - 0x1a8], esi
jae 0x4020d0
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404ed0
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 8
call fcn.00405900
add esp, 4
cmp dword [ebp - 0x11c], esi
jb 0x402106
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00458691
add esp, 4
push 0x104
lea edx, [ebp - 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 9
call fcn.00404ed0
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xa
call fcn.00405230
lea ebx, [ebp - 0x14c]
lea ecx, [ebp - 0x168]
call fcn.00405150
push eax
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x1a0]
push edx
mov byte [ebp - 4], 0xb
call fcn.00405a50
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x138], esi
jb 0x402197
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00458691
add esp, 4
push str._Debug.log
lea ecx, [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x184]
xor ebx, ebx
mov edi, 0xf
push edx
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00405aa0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.004022c0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x170], esi
jb 0x4021f1
mov eax, dword [ebp - 0x184]
push eax
call fcn.00458691
add esp, 4
push str._CustomerSupport.log
lea ecx, [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x1d8]
push edx
call fcn.00405aa0
push eax
mov byte [ebp - 4], 0xf
call fcn.00402590
add esp, 0x10
cmp dword [ebp - 0x1c4], esi
jb 0x40222d
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.00458691
add esp, 4
cmp dword [ebp - 0x18c], esi
jb 0x402244
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.00458691
add esp, 4
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x154], esi
jb 0x40226d
mov edx, dword [ebp - 0x168]
push edx
call fcn.00458691
add esp, 4
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x1a8], esi
jb 0x402296
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.00458691
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004587b6
mov esp, ebp
pop ebp
ret