Function at 0x1007541f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bdd99
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100cfa9c]
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.1008f0e2
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.10075af4
xor edi, edi
mov esi, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1007549a
push eax
mov dword [ebp - 0x28], edi
call fcn.10075940
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x100754b8
mov eax, dword [esi]
push esi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100d2370]
call edi
xor edi, edi
lea ecx, [ebp - 0x58]
call fcn.1008f30b
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.10075af4
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 0x100754e7
push eax
mov dword [ebp - 0x24], edi
call fcn.10075940
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10075507
mov eax, dword [ebx]
push ebx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100d2370]
call edi
lea ecx, [ebp - 0x58]
call fcn.1008f3c2
mov dword [ebp - 4], 2
test ebx, ebx
je 0x1007552a
mov eax, dword [ebx]
push ebx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100d2370]
call edi
push 3
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x10075544
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d2370]
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.10090508
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x10075781
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10075597
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1001f9f4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
mov ecx, dword [ebx + 0x28]
call fcn.1008d73d
mov esi, eax
test esi, esi
jns 0x10075752
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x100755d3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1001fa18
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
mov edi, 0xea60
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.10074821
mov esi, eax
test esi, esi
jns 0x10075613
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10075613
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1001fa84
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
mov ecx, ebx
call fcn.10074a1d
mov esi, eax
test esi, esi
jns 0x1007564c
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1007564a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1001fa9c
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
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 0x100756a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x100756a5
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1001fabc
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
test esi, esi
js 0x100757db
cmp edi, 3
jae 0x10075789
mov ebx, edi
test ebx, ebx
jne 0x100757b6
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
call fcn.10074821
mov esi, eax
test esi, esi
jns 0x100756fe
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x100756fc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1001fa84
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
xor esi, esi
mov al, byte [ebp - 0x1d]
mov edi, dword [ebp - 0x30]
test al, al
je 0x1007564f
mov ecx, dword [ebp - 0x34]
call fcn.10074a1d
mov esi, eax
test esi, esi
jns 0x10075746
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10075744
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1001fa9c
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x1002c504
call fcn.1002fc78
xor esi, esi
mov edi, dword [ebp - 0x30]
mov byte [ebp - 0x1d], 0
jmp 0x1007564f
mov dword [ebp - 0x30], edi
call fcn.1007b17a
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x100755d8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1001fa4c
push eax
push ecx
push ecx
mov edx, 0x1002ad96
call fcn.1002e8cc
jmp 0x100755d8
mov dword [ebp - 0x30], edi
jmp 0x100755d8
cmp edi, 0x80
jb 0x10075799
cmp edi, 0x83
jb 0x100757cf
cmp edi, 0xc0
je 0x100757cf
cmp edi, 0x102
jne 0x100756b8
mov byte [ebp - 0x1d], 1
jmp 0x100756c0
cmp ebx, 1
je 0x1007570c
cmp ebx, 2
je 0x100757cf
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x1d], al
jmp 0x10075701
lea ecx, [ebp - 0x58]
call fcn.1008f16a
xor eax, eax
jmp 0x100757e5
lea ecx, [ebp - 0x58]
call fcn.1008f16a
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.100a6b85
leave
ret