Function at 0x1004d3f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c218b
mov eax, dword fs:[0]
push eax
mov eax, 0x1a74
call fcn.1007aa10
mov eax, dword [0x100e716c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1a80]
mov edi, dword [ebp + 0xc]
mov ebx, 1
push esi
push eax
call fcn.1004dda0
push dword [ebp - 0x1a80]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004dd58
lea ecx, [ebp - 0x1a79]
call fcn.10047b40
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d558
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.1004b4b0
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d4b4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10049fb0
mov edx, eax
test edx, edx
jne 0x1004d4e7
xor ecx, ecx
jmp 0x1004d4ff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d4f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.1003e0c0
mov edx, eax
test edx, edx
jne 0x1004d530
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 4]
call fcn.1000dd30
mov ebx, 1
jmp 0x1004dd5a
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d535
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 4]
call fcn.1000dd30
mov ebx, 1
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.1003cb50
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d5ff
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.1004a790
push eax
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d5b4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10046560
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10044c00
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.1003c290
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d6ab
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10048d50
push eax
push esi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d660
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.1003df00
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10048ab0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.10049ed0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d752
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.1003f080
push eax
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d707
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.1003f6a0
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.1003e1a0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.1003f5c0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
jne 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.1004b9f0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d81b
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.1003f400
push eax
push esi
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xa38]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d7d0
sub ecx, edx
lea eax, [ebp - 0xa38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10042360
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10040820
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.100419c0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d8c2
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10046d40
push eax
push esi
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xc40]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d877
sub ecx, edx
lea eax, [ebp - 0xc40]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.1003e280
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10049df0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.100446c0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004d96b
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10046fe0
push eax
push esi
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xe48]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d920
sub ecx, edx
lea eax, [ebp - 0xe48]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10049290
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10044960
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.100468e0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004da12
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10044ce0
push eax
push esi
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1050]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d9c7
sub ecx, edx
lea eax, [ebp - 0x1050]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.100461e0
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.10041540
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.10048240
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004dabb
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10042d00
push eax
push esi
lea eax, [ebp - 0x1258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1258]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004da70
sub ecx, edx
lea eax, [ebp - 0x1258]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10048400
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.1004adb0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.10045ae0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004db62
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10049530
push eax
push esi
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1460]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004db17
sub ecx, edx
lea eax, [ebp - 0x1460]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.100470c0
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.100418e0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.10045840
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004dc0b
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10048ff0
push eax
push esi
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1668]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004dbc0
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.1004b830
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.100478a0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.1003fe80
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004dcb2
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.1004af70
push eax
push esi
lea eax, [ebp - 0x1870]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1870]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004dc67
sub ecx, edx
lea eax, [ebp - 0x1870]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10048160
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.1004a5d0
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
lea ecx, [ebp - 0x1a79]
call fcn.10045140
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004dd58
push 0x208
lea eax, [ebp - 0x1a78]
push 0
push eax
call fcn.1009cb00
mov esi, dword [ebp - 0x1a80]
lea ecx, [ebp - 0x1a79]
add esp, 0xc
call fcn.10042c20
push eax
push esi
lea eax, [ebp - 0x1a78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1a78]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004dd10
sub ecx, edx
lea eax, [ebp - 0x1a78]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1a79]
call fcn.10045e60
push eax
lea ecx, [edi + 8]
call fcn.10013290
lea ecx, [ebp - 0x1a79]
call fcn.1003f860
push eax
lea ecx, [edi + 4]
call fcn.10013290
jmp 0x1004dd5a
xor ebx, ebx
mov eax, dword [ebp - 0x1a80]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004dd7f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a7c6
mov esp, ebp
pop ebp
ret 0xc