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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519c71
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 0x41cd7d
push edi
lea ecx, [ebp - 0x18]
call fcn.00406d20
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], edi
jge 0x41cd8c
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.004ebabf
add esp, 8
test eax, eax
js 0x41cd82
cmp eax, dword [esi - 8]
jg 0x41cd82
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00406d80
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
push edx
call fcn.0041b4a0
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411680
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 0x41ce14
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 0x41d366
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.0041ba00
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.0041caa0
mov eax, dword [ebp - 0x54]
mov ecx, eax
test eax, eax
je 0x41d0cc
jmp 0x41cea3
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 0x41cefd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41cef0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41cef0
push eax
call fcn.00406d80
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41cee8
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 0x41cefd
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407100
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041b8a0
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x41cf1b
or eax, 0xffffffff
jmp 0x41cf3d
cmp dword [esi - 0xc], 0
jge 0x41cf26
or eax, 0xffffffff
jmp 0x41cf3d
push eax
push esi
call fcn.004ec4a7
add esp, 8
test eax, eax
jne 0x41cf39
or eax, 0xffffffff
jmp 0x41cf3d
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 0x41cf65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41d0c2
lea eax, [esi - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
cmp eax, esi
je 0x41cfc2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41cfb2
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41cfb2
push eax
call fcn.00406d80
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41cfaa
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 0x41cfc2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407100
lea eax, [ebp - 0x38]
push eax
call fcn.0041b570
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.0041b2b0
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 0x41d040
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41d033
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41d033
push eax
call fcn.00406d80
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41d02b
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 0x41d040
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407100
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 0x41d063
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 0x41d086
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 0x41d0b6
test dx, dx
je 0x41d0b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d0b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d090
xor eax, eax
jmp 0x41d0bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d0cc
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x28], 0
jne 0x41cea0
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041b640
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.0041b2b0
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x14]
call fcn.00411c00
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 0x41d122
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 0x41d145
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.0041b7e0
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.0041b2b0
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 0x41d18f
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 0x41d1bd
test dx, dx
je 0x41d1b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d1bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d197
xor eax, eax
jmp 0x41d1c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d211
lea ecx, [ebp - 0x38]
push ecx
call fcn.0041b710
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411680
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 0x41d203
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.00411680
jmp 0x41d21d
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.00411c00
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00406d80
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 0x41d261
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 0x41d28e
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.0041b0a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.0041b0a0
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 0x41d2c9
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 0x41d2ec
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 0x41d30f
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 0x41d332
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 0x41d352
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.00409590
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 0x41d3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41d332