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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0c31
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
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 0x4210ed
push edi
lea ecx, [ebp - 0x18]
call fcn.00406e80
mov esi, dword [ebp - 0x18]
cmp dword [esi - 8], edi
jge 0x4210fc
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.004ab44b
add esp, 8
test eax, eax
js 0x4210f2
cmp eax, dword [esi - 8]
jg 0x4210f2
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00406ee0
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
push edx
call fcn.0041f810
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00412570
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 0x421184
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 0x4216d6
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
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.0041fd70
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.00420e10
mov eax, dword [ebp - 0x54]
mov ecx, eax
test eax, eax
je 0x42143c
jmp 0x421213
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 0x42126d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x421260
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x421260
push eax
call fcn.00406ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x421258
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 0x42126d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407200
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041fc10
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x42128b
or eax, 0xffffffff
jmp 0x4212ad
cmp dword [esi - 0xc], 0
jge 0x421296
or eax, 0xffffffff
jmp 0x4212ad
push eax
push esi
call fcn.004abdd7
add esp, 8
test eax, eax
jne 0x4212a9
or eax, 0xffffffff
jmp 0x4212ad
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 0x4212d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x421432
lea eax, [esi - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
cmp eax, esi
je 0x421332
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x421322
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x421322
push eax
call fcn.00406ee0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x42131a
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 0x421332
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407200
lea eax, [ebp - 0x38]
push eax
call fcn.0041f8e0
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.0041f620
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 0x4213b0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4213a3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4213a3
push eax
call fcn.00406ee0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42139b
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 0x4213b0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407200
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 0x4213d3
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 0x4213f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x4e9190
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421426
test dx, dx
je 0x421422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421426
add eax, 4
add ecx, 4
test dx, dx
jne 0x421400
xor eax, eax
jmp 0x42142b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42143c
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x28], 0
jne 0x421210
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041f9b0
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.0041f620
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x14]
call fcn.00412bf0
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 0x421492
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 0x4214b5
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.0041fb50
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.0041f620
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 0x4214ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x4e9190
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42152d
test dx, dx
je 0x421529
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42152d
add eax, 4
add ecx, 4
test dx, dx
jne 0x421507
xor eax, eax
jmp 0x421532
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421581
lea ecx, [ebp - 0x38]
push ecx
call fcn.0041fa80
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.00412570
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 0x421573
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.00412570
jmp 0x42158d
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.00412bf0
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00406ee0
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 0x4215d1
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 0x4215fe
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.0041f410
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.0041f410
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 0x421639
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 0x42165c
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 0x42167f
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 0x4216a2
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 0x4216c2
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 0x4e6ea0
mov ecx, edi
call fcn.00409830
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 0x421710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4216a2