Function at 0x100ad500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10109e28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10145fb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x100ad54c
lea eax, [esi - 0x63]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0x10
lea edi, [esi + 0x30]
jb 0x100ad557
mov edi, dword [edi]
call fcn.100ad2d0
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.100a4470
add esp, 0xc
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x100ad581
mov edx, dword [edx]
test edx, edx
jne 0x100ad589
xor ecx, ecx
jmp 0x100ad59f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ad590
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x40]
call fcn.1000a120
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x100ad5ea
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100ad5e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ad78f
push edx
push ecx
call fcn.100b21ce
add esp, 8
cmp dword [esi + 0x5c], 0x10
lea edi, [esi + 0x48]
jb 0x100ad5f5
mov edi, dword [edi]
call fcn.100ad2d0
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.100a4470
add esp, 0xc
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x100ad61f
mov edx, dword [edx]
test edx, edx
jne 0x100ad627
xor ecx, ecx
jmp 0x100ad63f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ad630
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x5c]
call fcn.1000a120
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x100ad68a
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100ad680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ad794
push edx
push ecx
call fcn.100b21ce
add esp, 8
cmp dword [esi + 0x74], 0x10
lea edi, [esi + 0x60]
jb 0x100ad695
mov edi, dword [edi]
call fcn.100ad2d0
mov edx, edi
lea ebx, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100ad6a0
sub edx, ebx
lea ecx, [eax + 0x44]
push edx
push edi
call fcn.1000af60
cmp dword [esi + 0xa4], 0x10
lea eax, [esi + 0x90]
mov dword [ebp - 0x18], eax
jb 0x100ad6ca
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x8c], 0x10
lea edi, [esi + 0x78]
jb 0x100ad6d8
mov edi, dword [edi]
cmp dword [esi + 0x2c], 0x10
lea ebx, [esi + 0x18]
jb 0x100ad6e3
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x100ad6eb
mov esi, dword [esi]
call fcn.100ad2d0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.100078e0
push dword [ebp - 0x14]
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100ad718
mov byte [ebp - 0xd], 1
jmp 0x100ad729
push dword [ebp - 0x14]
call fcn.100a5d20
add esp, 4
test eax, eax
sete byte [ebp - 0xd]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100ad74b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x100ad767
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push edi
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.100ad7a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.100d129a
call fcn.100d129a
int3