Function at 0x413050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe20
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x413317
mov ecx, dword [ebp + 0xc]
call fcn.004077a0
mov edx, dword [0x440ce0]
mov eax, dword [edx + 0xc]
mov ecx, 0x440ce0
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, dword [esi]
push ecx
push 0x434f7c
lea edx, [ebp + 8]
push str._s_sCRX
push edx
mov dword [ebp - 4], ebx
call fcn.00411500
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
add esp, 0x10
mov ecx, 0x440ce0
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0xa28
or eax, ecx
mov byte [ebp - 4], 1
jge 0x413101
push 0xa28
lea ecx, [ebp - 0x10]
call fcn.004078f0
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push edi
push esi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, ebx
jl 0x4132d5
cmp edi, ebx
je 0x4132d5
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040ded0
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00412c90
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41316e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 1
jne 0x4131f1
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00411490
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x41319d
mov edx, dword [ebp - 0x20]
push edx
push eax
call fcn.00410a90
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041e896
add esp, 0xc
add edi, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [edi + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131bb
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4131da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00412e70
push 2
push 1
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x34]
call fcn.00412120
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00411490
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41324c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00410030
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x413279
mov ecx, dword [ebp - 0x20]
push ecx
push eax
call fcn.00410a90
mov edx, dword [ebp - 0x24]
push edx
call fcn.0041e896
add esp, 0xc
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004200f0
add esp, 8
cmp eax, ebx
jl 0x4132cb
cmp eax, dword [edi - 8]
jg 0x4132cb
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4132b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x41330b
push 0x80070057
call fcn.00405660
add edi, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132f4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret