Function at 0x4036c0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x212c
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2134]
push ebx
mov ebx, dword [esp + 0x2134]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
or ebp, 0xffffffff
mov dword [esp + 0x20], edi
cmp dword [esp + 0x2148], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
jne 0x40373c
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x11
push dword [edi]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x12
push dword [edi]
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
mov esi, dword [eax + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20
push dword [edi]
mov ecx, esi
push ebx
call dword [0x55770c]
call esi
test eax, eax
jne 0x4039fd
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4039fd
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ecx
mov ecx, esi
call dword [0x55770c]
call esi
test eax, eax
jne 0x4039e9
lea esp, [esp]
mov esi, dword [ebx]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0x10000000
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
push 1
push ebx
call dword [0x55770c]
call esi
test dword [esp + 0x2c], 0x10000000
jne 0x4037ec
mov eax, dword [0x600948]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
jmp 0x4039c1
push 0x880
lea eax, [esp + 0x103c]
push eax
push 1
push dword [esp + 0x20]
push ebx
call fcn.00418d30
test al, al
je 0x4037ce
cmp dword [esp + 0x2148], 0
jne 0x4038d0
push 1
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x1044]
mov ecx, edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push 4
push eax
call fcn.00403f10
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
push dword [esp + 0x28]
push 0
mov esi, dword [eax + 0x1c]
mov ecx, esi
push ebx
call dword [0x55770c]
call esi
test eax, eax
jne 0x40385f
mov eax, dword [esp + 0x1c]
inc eax
mov dword [edi + 4], eax
push dword [esp + 0x14]
mov eax, dword [ebx]
push dword [esp + 0x2c]
push 0
mov esi, dword [eax + 0x1c]
mov ecx, esi
push ebx
call dword [0x55770c]
call esi
test eax, eax
jne 0x4039c1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x56eca0
push 0
push dword [esp + 0x20]
mov ecx, esi
push ebx
call dword [0x55770c]
call esi
test eax, eax
jne 0x4039c1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4039c1
push 1
push dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.004036c0
mov byte [esp + 0x13], al
jmp 0x4039c1
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.00416ee0
mov esi, eax
xor eax, eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [0x600948]
mov edi, eax
push esi
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
test edi, edi
jne 0x403931
mov eax, dword [0x600948]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
mov edi, dword [esp + 0x20]
jmp 0x4039c1
lea eax, [esp + 0x38]
push eax
call fcn.004a2df0
test al, al
je 0x403996
mov ax, word [esp + 0x3c]
test ax, ax
je 0x403957
cmp ax, 0x5c
jne 0x403996
cmp word [esp + 0x3e], 0
jne 0x403996
push 0x800
lea eax, [esp + 0x3c]
push eax
call fcn.004a1860
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x1038]
push 1
push ebp
push 2
push eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00403f10
cmp ebp, 0xffffffff
je 0x40398f
inc ebp
mov byte [esp + 0x13], 1
jmp 0x4039c1
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x1038]
push 1
push 0xffffffffffffffff
push 2
push eax
push 0xffffffffffffffff
push 0
push 5
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00403f10
cmp ebp, 0xffffffff
jne 0x4039c1
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ecx
mov ecx, esi
call dword [0x55770c]
call esi
test eax, eax
je 0x4037a0
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x55770c]
call esi
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x55770c]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x403a2b
mov eax, dword [0x600948]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x403a49
mov eax, dword [0x600948]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
mov ecx, dword [esp + 0x2138]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x212c
ret 0xc