Function at 0x10016290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6f31
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100c66d0]
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
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], ebx
call fcn.10025500
mov dword [ebp - 4], ebx
mov edi, dword [0x100c9918]
cmp edi, ebx
jne 0x10016318
push 0x138
call fcn.1003d7eb
add esp, 4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x1001630b
mov esi, eax
call fcn.10035040
jmp 0x1001630d
xor eax, eax
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x100c9918], edi
lea ebx, [ebp - 0x2c]
call fcn.10035310
xor ebx, ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], ebx
jbe 0x100163ba
push ebx
lea ecx, [ebp - 0xd4]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
cmp dword [ebp - 0x1c], ebx
je 0x100163ba
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10016352
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x100163ba
mov esi, dword [ebp - 0xf8]
lea eax, [ebp - 0x2c]
mov edi, 7
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.100050d0
cmp dword [ebp - 0x18], 8
jb 0x10016395
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
jb 0x10016d1b
mov eax, dword [ebp - 0xd4]
push eax
jmp 0x10016d13
lea esi, [ebp - 0x9c]
call fcn.10033d80
mov byte [ebp - 4], 3
lea esi, [ebp - 0xb8]
mov dword [ebp - 0xfc], 0x80000001
call fcn.10033cf0
mov dword [ebp - 0x104], eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.100255c0
mov esi, eax
push 0x100b6220
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 5
call fcn.100069b0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea edi, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.10006920
mov edi, eax
mov byte [ebp - 4], 7
cmp dword [0x100c9918], ebx
jne 0x1001645e
push 0x138
call fcn.1003d7eb
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x10016453
mov esi, eax
call fcn.10035040
jmp 0x10016455
xor eax, eax
mov byte [ebp - 4], 7
mov dword [0x100c9918], eax
mov edx, dword [ebp - 0x104]
push ebx
lea eax, [ebp - 0xfc]
push eax
mov ecx, edi
lea esi, [ebp - 0x80]
call fcn.100357d0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.100050d0
mov edi, 8
cmp dword [ebp - 0x6c], edi
jb 0x10016499
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xdc], edi
jb 0x100164c1
mov eax, dword [ebp - 0xf0]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], cx
cmp dword [ebp - 0x50], edi
jb 0x100164e7
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], edi
jb 0x10016504
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x1001652b
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x100167dc
lea esi, [ebp - 0xb8]
call fcn.10025620
mov ecx, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.10017430
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.10034930
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], edi
jb 0x1001657b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], edi
jb 0x1001659d
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xa4], edi
jb 0x100165c4
mov edx, dword [ebp - 0xb8]
push edx
call fcn.1003d468
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x10016693
push ebx
lea eax, [ebp - 0xd4]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
cmp dword [ebp - 0x1c], ebx
je 0x100167dc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x100165f6
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x100167dc
mov esi, dword [ebp - 0xf8]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.100050d0
cmp dword [ebp - 0x88], edi
jb 0x10016641
mov eax, dword [ebp - 0x9c]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0x18], edi
jb 0x1001666b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0xc0], edi
jb 0x10016d1b
mov ecx, dword [ebp - 0xd4]
push ecx
jmp 0x10016d13
lea esi, [ebp - 0xb8]
call fcn.100255f0
mov esi, eax
mov byte [ebp - 4], 0xc
push 1
xor edx, edx
push 0x100b6220
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
call fcn.10005fb0
mov eax, esi
lea ecx, [ebp - 0x80]
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 0xd
call fcn.10006920
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.10034930
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], 8
jb 0x10016703
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov edi, 8
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x1001672a
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], edi
jb 0x10016747
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], edi
jb 0x1001676e
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x100167dc
push ebx
lea ecx, [ebp - 0xd4]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
cmp dword [ebp - 0x1c], ebx
je 0x100167dc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10016798
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x100167dc
mov esi, dword [ebp - 0xf8]
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.10004200
lea ecx, [ebp - 0x9c]
call fcn.10004230
lea ecx, [ebp - 0x2c]
call fcn.10004230
lea ecx, [ebp - 0xd4]
call fcn.10004230
jmp 0x10016d1b
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0xfc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x10016813
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x10016836
cmp dword [ebp - 0xfc], ebx
je 0x10016836
lea esi, [ebp - 0xb8]
call fcn.10033db0
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x100], 2
jmp 0x1001684f
lea esi, [ebp - 0x48]
call fcn.10033d80
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x100], 4
push eax
lea ecx, [ebp - 0x9c]
call fcn.100050d0
test byte [ebp - 0x100], 4
je 0x1001688d
and dword [ebp - 0x100], 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x1001687d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 3
test byte [ebp - 0x100], 2
je 0x100168b5
cmp dword [ebp - 0xa4], 8
jb 0x100168b5
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
lea esi, [ebp - 0xb8]
mov dword [ebp - 0x104], 0x80000002
call fcn.10033cf0
mov dword [ebp - 0xfc], eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0x11
call fcn.100255c0
mov esi, eax
push 0x100b6220
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov byte [ebp - 4], 0x12
call fcn.100069b0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.10006920
mov edi, eax
mov byte [ebp - 4], 0x14
cmp dword [0x100c9918], ebx
jne 0x1001694a
push 0x138
call fcn.1003d7eb
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0x15
cmp eax, ebx
je 0x1001693f
mov esi, eax
call fcn.10035040
jmp 0x10016941
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x100c9918], eax
mov edx, dword [ebp - 0xfc]
push ebx
lea eax, [ebp - 0x104]
push eax
mov ecx, edi
lea esi, [ebp - 0x48]
call fcn.100357d0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.100050d0
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x10016985
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], esi
jb 0x100169a7
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xdc], esi
jb 0x100169ca
mov edx, dword [ebp - 0xf0]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], ax
cmp dword [ebp - 0x6c], esi
jb 0x100169f0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], esi
jb 0x10016a17
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x10016c95
lea esi, [ebp - 0xb8]
call fcn.10025620
mov ecx, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0x17
call fcn.10017430
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x18
call fcn.10034930
add esp, 4
cmp dword [eax + 0x10], ebx
mov esi, 8
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], esi
jb 0x10016a6c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], esi
jb 0x10016a8e
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xa4], esi
jb 0x10016ab5
mov edx, dword [ebp - 0xb8]
push edx
call fcn.1003d468
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x10016b7c
push ebx
lea eax, [ebp - 0xd4]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
cmp dword [ebp - 0x1c], ebx
je 0x10016c95
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10016ae8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x10016c95
mov esi, dword [ebp - 0xf8]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.100050d0
cmp dword [ebp - 0x88], 8
jb 0x10016b30
mov eax, dword [ebp - 0x9c]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
jb 0x10016b57
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
jb 0x10016d1b
mov ecx, dword [ebp - 0xd4]
push ecx
jmp 0x10016d13
lea esi, [ebp - 0xb8]
call fcn.100255f0
mov esi, eax
mov byte [ebp - 4], 0x19
push 1
xor edx, edx
push 0x100b6220
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
call fcn.10005fb0
mov eax, esi
lea ecx, [ebp - 0x80]
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 0x1a
call fcn.10006920
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1b
call fcn.10034930
add esp, 4
cmp dword [eax + 0x10], ebx
seta byte [ebp - 0xf1]
cmp dword [ebp - 0x34], 8
jb 0x10016bec
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov edi, 8
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x10016c13
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], edi
jb 0x10016c30
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], edi
jb 0x10016c57
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
cmp byte [ebp - 0xf1], bl
je 0x10016c95
push ebx
lea ecx, [ebp - 0xd4]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
cmp dword [ebp - 0x1c], ebx
je 0x10016c95
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10016c81
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x100167a8
mov esi, dword [ebp - 0xf8]
push ebx
mov edi, 7
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0x100b61ec
mov ecx, esi
mov word [esi], ax
call fcn.10005fb0
cmp dword [ebp - 0x88], 8
jb 0x10016cd0
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
jb 0x10016cf7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x10016d1b
mov edx, dword [ebp - 0xd4]
push edx
call fcn.1003d468
add esp, 4
mov eax, esi
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.1003c5b5
mov esp, ebp
pop ebp
ret