Function at 0x41c970
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519a01
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x105
sub eax, edi
or eax, ecx
jge 0x41c9dd
push edi
lea ecx, [ebp - 0x18]
call fcn.00406e00
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], edi
jge 0x41c9ec
push 0x80070057
call fcn.00406170
push 1
push 0x1a
xor eax, eax
push esi
mov dword [esi - 0xc], edi
push eax
mov word [esi + 0x20a], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004eb8eb
add esp, 8
test eax, eax
js 0x41c9e2
cmp eax, dword [esi - 8]
jg 0x41c9e2
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00406e60
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
push edx
call fcn.0041b100
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.004113a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ca74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cfc6
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0041b660
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.0041c700
mov eax, dword [ebp - 0x54]
mov ecx, eax
test eax, eax
je 0x41cd2c
jmp 0x41cb03
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov eax, ecx
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x28], edx
cmp eax, esi
je 0x41cb5d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41cb50
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41cb50
push eax
call fcn.00406e60
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41cb48
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x41cb5d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004071a0
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041b500
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x41cb7b
or eax, 0xffffffff
jmp 0x41cb9d
cmp dword [esi - 0xc], 0
jge 0x41cb86
or eax, 0xffffffff
jmp 0x41cb9d
push eax
push esi
call fcn.004ec277
add esp, 8
test eax, eax
jne 0x41cb99
or eax, 0xffffffff
jmp 0x41cb9d
sub eax, esi
sar eax, 1
test eax, eax
sete bl
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cbc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41cd22
lea eax, [esi - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
cmp eax, esi
je 0x41cc22
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41cc12
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41cc12
push eax
call fcn.00406e60
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41cc0a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
jmp 0x41cc22
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004071a0
lea eax, [ebp - 0x38]
push eax
call fcn.0041b1d0
add esp, 4
mov byte [ebp - 4], 0x12
push 0x104
lea ecx, [ebp - 0x10]
push ecx
push eax
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x70]
call fcn.0041af10
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41cca0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41cc93
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41cc93
push eax
call fcn.00406e60
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41cc8b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x41cca0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004071a0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ccc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cce6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x532eb4
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cd16
test dx, dx
je 0x41cd12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cd16
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ccf0
xor eax, eax
jmp 0x41cd1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41cd2c
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x28], 0
jne 0x41cb00
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041b2a0
add esp, 4
mov bl, 0x16
mov byte [ebp - 4], bl
push 0x104
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041af10
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x14]
call fcn.00411920
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cda5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0041b440
add esp, 4
mov byte [ebp - 4], 0x1a
push 0x104
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041af10
mov bl, 0x1c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cdef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x532eb4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ce1d
test dx, dx
je 0x41ce19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ce1d
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cdf7
xor eax, eax
jmp 0x41ce22
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41ce71
lea ecx, [ebp - 0x38]
push ecx
call fcn.0041b370
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.004113a0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ce63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004113a0
jmp 0x41ce7d
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.00411920
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00406e60
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 0x24
mov byte [ebp - 4], al
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ceee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x58]
call fcn.0041ad00
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.0041ad00
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cfb2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
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 edi, dword [ebp + 8]
push 0x530e54
mov ecx, edi
call fcn.004095e0
mov byte [ebp - 4], 6
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 3
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41cf92