Function at 0x410700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5510f9
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x5a9f00]
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
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov edi, 0xf
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x158], esi
mov byte [esi], bl
push 0x103
lea eax, [ebp - 0x113]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x154], 1
mov byte [ebp - 0x114], bl
call fcn.00528f50
add esp, 0xc
push ebx
push 0x10
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410790
sub eax, edx
cmp eax, ebx
je 0x410905
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00404400
lea eax, [ebp - 0x130]
push eax
mov eax, 0x5815e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 1
call fcn.004093f0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00403b10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], 0x10
jb 0x41080e
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00425301
add esp, 4
mov edi, 0xf
mov byte [ebp - 4], bl
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
jb 0x410840
mov edx, dword [ebp - 0x130]
push edx
call fcn.00425301
add esp, 4
push 1
push 0x5815e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00404400
mov dword [ebp - 4], 3
push 2
push 0x581604
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00404400
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x130]
mov ebx, esi
mov byte [ebp - 4], 4
call fcn.00405bf0
mov edi, 0x10
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x11c], edi
jb 0x4108ca
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00425301
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x130], al
cmp dword [ebp - 0x138], edi
jb 0x4109a6
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00425301
add esp, 4
jmp 0x4109a6
push 0x4be6
push 0x11f6
push 0x13ad7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0x3e
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x582278
mov byte [ecx], bl
call fcn.00404400
lea ecx, [ebp - 0x14c]
call fcn.004075e0
add esp, 0x28
mov edi, eax
mov dword [ebp - 4], 5
call fcn.00403b10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], 0x10
jb 0x41096a
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00425301
add esp, 4
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push esi
mov byte [ecx], bl
call fcn.00403c50
call fcn.004066a0
add esp, 0x20
cmp eax, ebx
jne 0x4109a6
push 1
push 0x5815e0
mov ecx, esi
call fcn.00404400
mov eax, esi
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.00523d1e
mov esp, ebp
pop ebp
ret