Function at 0x1002ff00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100beb6f
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x100fe39c]
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 dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x100], ebx
push eax
mov dword [ebp - 0xec], 0
call fcn.10003f90
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe8]
push 0xc0
push 0
push eax
mov dword [ebp - 0xec], 1
call fcn.10087da0
add esp, 0xc
lea ecx, [ebp - 0xe8]
push 1
call fcn.1002bb60
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002ff9e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10030439
cmp dword [esi + 0x14], 8
jb 0x1002ffb5
mov esi, dword [esi]
cmp dword [ebp - 0x84], 0
jne 0x100301bb
push 0x40
push 3
push esi
call fcn.100466a4
add esp, 0xc
test eax, eax
je 0x100301bb
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x84], eax
mov eax, dword [0x10103834]
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc0], ecx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov eax, dword [0x10103838]
mov byte [ebp - 0x88], 1
mov byte [ebp - 0x92], 0
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xf8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xec], 3
push eax
call fcn.1002b390
mov esi, eax
add esp, 4
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x100300de
mov dword [ebp - 0x98], 0
jmp 0x10030168
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov eax, 3
mov dword [ebp - 0xec], eax
and eax, 0xfffffffd
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xf8]
test ecx, ecx
je 0x1003019b
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x1003019b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x100301de
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.10009090
cmp dword [ebp - 0x84], 0
je 0x1003047c
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1002a210
mov eax, dword [ebp - 0xe8]
add esp, 8
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xdc], 6
je 0x10030250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10005430
jmp 0x10030439
cmp dword [edi + 0x14], 8
jb 0x10030258
mov edi, dword [edi]
call fcn.1000b000
mov ecx, eax
test ecx, ecx
je 0x100304a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf4]
push edi
call fcn.1000ae40
test al, al
jne 0x100302b2
test edi, edi
jne 0x10030291
xor ecx, ecx
jmp 0x100302a5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030296
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0xf4]
call fcn.1000bca0
mov byte [ebp - 4], 5
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call fcn.1000b000
mov ecx, eax
test ecx, ecx
je 0x100304b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
push esi
call fcn.1000ae40
test al, al
jne 0x1003031c
test esi, esi
jne 0x100302fa
xor ecx, ecx
jmp 0x1003030f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030300
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xf0]
call fcn.1000bca0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.10051340
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030350
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10008f70
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0xf8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003038d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100303ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100303cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x100303e7
cmp dword [ebp - 0x14], 8
mov ecx, ebx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10008f70
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10030425
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003041b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100304bd
push edx
push ecx
call fcn.1004f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x84], 0
je 0x1003047c
lea ecx, [ebp - 0xd0]
call fcn.10035700
test eax, eax
jne 0x1003047c
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.10009090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
call fcn.1002c710
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.1004f51c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000ae20
push 0x80004005
call fcn.1000ae20
call fcn.1008b33c
int3