Function at 0x40ad80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d511
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x47b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x154], edi
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0
call fcn.00409be0
mov byte [ebp - 4], 1
lea edx, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
mov ecx, dword [ebx + 0x18]
cmovae edx, dword [ebx + 8]
mov eax, dword [ebp - 0x124]
mov esi, dword [ebp - 0x128]
sub eax, esi
mov dword [ebp - 0x154], ecx
push ecx
push edx
cmp ecx, eax
ja 0x40ae41
cmp dword [ebp - 0x124], 0x10
lea eax, [esi + ecx]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
add esi, eax
push esi
call fcn.0043ee20
mov eax, dword [ebp - 0x154]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40ae5a
mov byte [ebp - 0x154], 0
push dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x138]
call fcn.00401500
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirA]
test eax, eax
jne 0x40af4b
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x150], al
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aeb0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00401370
push 0x46e99c
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.004010f0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x40af6a
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b00b
push edx
push ecx
call fcn.0042736a
add esp, 8
jmp 0x40af6a
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x46e998
mov byte [edi], 0
call fcn.00401370
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x40afa0
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b010
push edx
push ecx
call fcn.0042736a
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp edx, 0x10
jb 0x40afeb
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40afe1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b015
push edx
push ecx
call fcn.0042736a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427329
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004421bc
call fcn.004421bc
call fcn.004421bc
int3