Function at 0x1004e0d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c21cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1674
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 - 0x1670]
mov edi, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1680], 1
call fcn.1004dda0
push dword [ebp - 0x1670]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004e140
xor ebx, ebx
jmp 0x1004ea80
lea ecx, [ebp - 0x1669]
call fcn.1003c610
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e243
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e189
call fcn.10049a70
jmp 0x1004e18e
call fcn.10040ac0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x218]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e1b0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.10047980
mov edx, eax
test edx, edx
jne 0x1004e1e1
xor ecx, ecx
jmp 0x1004e1f5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e1e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003ed00
mov edx, eax
test edx, edx
jne 0x1004e220
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000dd30
jmp 0x1004e9ad
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e225
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.1000dd30
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1004b750
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e2f9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e28c
call fcn.1004b050
jmp 0x1004e291
call fcn.100485c0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x420]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e2b1
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003efa0
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.100486a0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.10040c80
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
jne 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1004ae90
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e3cc
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e35f
call fcn.1004a090
jmp 0x1004e364
call fcn.1003f160
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x628]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e384
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003f240
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.100427c0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1003c450
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
jne 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.10043e00
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e49f
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e432
call fcn.10045300
jmp 0x1004e437
call fcn.1004abf0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x830]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e457
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.10045760
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.10045220
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1003d090
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e558
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e4e8
call fcn.100476e0
jmp 0x1004e4ed
call fcn.1004b910
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xa38]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e510
sub edx, esi
lea eax, [ebp - 0xa38]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.10047440
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.100447a0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1004a250
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e60e
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e5a1
call fcn.1003fbe0
jmp 0x1004e5a6
call fcn.1004b3d0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xc40]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e5c6
sub edx, esi
lea eax, [ebp - 0xc40]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.10041620
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.10042b40
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.100426e0
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e6c8
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e657
call fcn.10048780
jmp 0x1004e65c
call fcn.1003daa0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0xe48]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e680
sub edx, esi
lea eax, [ebp - 0xe48]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003fb00
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.10042ec0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1003ca70
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e77e
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e711
call fcn.1004bbb0
jmp 0x1004e716
call fcn.1003dd40
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1050]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e736
sub edx, esi
lea eax, [ebp - 0x1050]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.10040ba0
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.1003c0d0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.10042280
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e838
push 0x208
lea eax, [ebp - 0x1258]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e7c7
call fcn.1003c370
jmp 0x1004e7cc
call fcn.10041e20
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x1258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1258]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e7f0
sub edx, esi
lea eax, [ebp - 0x1258]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003d720
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.10040040
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.10043a80
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e8ee
push 0x208
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e881
call fcn.1004a170
jmp 0x1004e886
call fcn.1003e440
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x1460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1460]
lea ecx, [edi + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e8a6
sub edx, esi
lea eax, [ebp - 0x1460]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003f780
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.10041f00
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
lea ecx, [ebp - 0x1669]
call fcn.1004aa30
push eax
push esi
call fcn.100132e0
add esp, 8
test al, al
je 0x1004e9a5
push 0x208
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.1009cb00
add esp, 0xc
call fcn.1004eae0
lea ecx, [ebp - 0x1669]
test eax, eax
je 0x1004e937
call fcn.1003ced0
jmp 0x1004e93c
call fcn.1003cdf0
push eax
push dword [ebp - 0x1670]
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1668]
lea ecx, [edi + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004e960
sub edx, esi
lea eax, [ebp - 0x1668]
sar edx, 1
push edx
push eax
call fcn.1000dd30
lea ecx, [ebp - 0x1669]
call fcn.1003e9f0
push eax
mov ecx, edi
call fcn.10013290
lea ecx, [ebp - 0x1669]
call fcn.100455a0
push eax
lea ecx, [edi + 8]
call fcn.10013290
jmp 0x1004e9ad
xor eax, eax
mov dword [ebp - 0x1680], eax
mov dword [edi + 0xc], 0
cmp dword [0x100e70f8], 0
je 0x1004ea61
push str.ntdll.dll
mov dword [ebp - 0x1678], 0
xor ebx, ebx
mov dword [ebp - 0x167c], 0
mov dword [ebp - 0x1674], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1004ea57
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004ea2b
lea ecx, [ebp - 0x1674]
push ecx
lea ecx, [ebp - 0x167c]
push ecx
lea ecx, [ebp - 0x1678]
push ecx
call eax
movzx eax, word [ebp - 0x1674]
mov ebx, 1
mov dword [ebp - 0x1674], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x1004ea57
cmp dword [ebp - 0x1678], 5
jne 0x1004ea57
mov eax, dword [0x10110b1c]
mov ecx, 1
cmp dword [ebp - 0x167c], ecx
cmove eax, ecx
mov dword [0x10110b1c], eax
mov dword [0x100e70f8], 0
cmp dword [0x10110b1c], 0
je 0x1004ea7a
call fcn.1004ef40
test eax, eax
je 0x1004ea7a
mov dword [edi + 0xc], 1
mov ebx, dword [ebp - 0x1680]
mov eax, dword [ebp - 0x1670]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004eaa5
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