Function at 0x1007e8ef
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca78e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100dcd6c]
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 esi, ecx
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x58]
call fcn.1009ac9c
or dword [ebp - 0x2c], 0xffffffff
lea ebx, [esi + 0x24]
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov edx, ebx
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0xea60
mov byte [ebp - 0x1d], 0
call fcn.1007efc4
xor edi, edi
mov esi, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1007e96a
push eax
mov dword [ebp - 0x28], edi
call fcn.1007ee10
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x1007e988
mov eax, dword [esi]
push esi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100df370]
call edi
xor edi, edi
lea ecx, [ebp - 0x58]
call fcn.1009aec5
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.1007efc4
mov ebx, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
lea ecx, [ebx + 4]
neg ebx
sbb ebx, ebx
and ebx, ecx
test eax, eax
je 0x1007e9b7
push eax
mov dword [ebp - 0x24], edi
call fcn.1007ee10
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1007e9d7
mov eax, dword [ebx]
push ebx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100df370]
call edi
lea ecx, [ebp - 0x58]
call fcn.1009af7c
mov dword [ebp - 4], 2
test ebx, ebx
je 0x1007e9fa
mov eax, dword [ebx]
push ebx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100df370]
call edi
push 3
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x1007ea14
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100df370]
call esi
push ebx
mov ebx, dword [ebp - 0x34]
or edi, 0xffffffff
mov dword [ebp - 4], edi
push dword [ebx + 0x28]
push edi
call fcn.1009c0cb
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x1007ec51
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007ea67
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10020fbc
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
mov ecx, dword [ebx + 0x28]
call fcn.10099300
mov esi, eax
test esi, esi
jns 0x1007ec22
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007eaa3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10020fe0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
mov edi, 0xea60
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.1007dcf1
mov esi, eax
test esi, esi
jns 0x1007eae3
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007eae3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1002104c
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
mov ecx, ebx
call fcn.1007deed
mov esi, eax
test esi, esi
jns 0x1007eb1c
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007eb1a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10021064
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
xor esi, esi
mov ebx, dword [ebp - 0x2c]
push 1
push edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1007eb75
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007eb75
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10021084
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
test esi, esi
js 0x1007ecab
cmp edi, 3
jae 0x1007ec59
mov ebx, edi
test ebx, ebx
jne 0x1007ec86
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
call fcn.1007dcf1
mov esi, eax
test esi, esi
jns 0x1007ebce
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007ebcc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1002104c
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
xor esi, esi
mov al, byte [ebp - 0x1d]
mov edi, dword [ebp - 0x30]
test al, al
je 0x1007eb1f
mov ecx, dword [ebp - 0x34]
call fcn.1007deed
mov esi, eax
test esi, esi
jns 0x1007ec16
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007ec14
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10021064
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
xor esi, esi
mov edi, dword [ebp - 0x30]
mov byte [ebp - 0x1d], 0
jmp 0x1007eb1f
mov dword [ebp - 0x30], edi
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x1007eaa8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10021014
push eax
push ecx
push ecx
mov edx, 0x1002f141
call fcn.100330ac
jmp 0x1007eaa8
mov dword [ebp - 0x30], edi
jmp 0x1007eaa8
cmp edi, 0x80
jb 0x1007ec69
cmp edi, 0x83
jb 0x1007ec9f
cmp edi, 0xc0
je 0x1007ec9f
cmp edi, 0x102
jne 0x1007eb88
mov byte [ebp - 0x1d], 1
jmp 0x1007eb90
cmp ebx, 1
je 0x1007ebdc
cmp ebx, 2
je 0x1007ec9f
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x1d], al
jmp 0x1007ebd1
lea ecx, [ebp - 0x58]
call fcn.1009ad24
xor eax, eax
jmp 0x1007ecb5
lea ecx, [ebp - 0x58]
call fcn.1009ad24
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.100b2d85
leave
ret