Function at 0x100ade80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a958
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10146fb4]
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 0x100adecc
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 0x100aded7
mov edi, dword [edi]
call fcn.100adc50
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.100a4e00
add esp, 0xc
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x100adf01
mov edx, dword [edx]
test edx, edx
jne 0x100adf09
xor ecx, ecx
jmp 0x100adf1f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100adf10
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 0x100adf6a
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100adf60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ae10f
push edx
push ecx
call fcn.100b2b4e
add esp, 8
cmp dword [esi + 0x5c], 0x10
lea edi, [esi + 0x48]
jb 0x100adf75
mov edi, dword [edi]
call fcn.100adc50
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.100a4e00
add esp, 0xc
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x100adf9f
mov edx, dword [edx]
test edx, edx
jne 0x100adfa7
xor ecx, ecx
jmp 0x100adfbf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100adfb0
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 0x100ae00a
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100ae000
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ae114
push edx
push ecx
call fcn.100b2b4e
add esp, 8
cmp dword [esi + 0x74], 0x10
lea edi, [esi + 0x60]
jb 0x100ae015
mov edi, dword [edi]
call fcn.100adc50
mov edx, edi
lea ebx, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100ae020
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 0x100ae04a
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x8c], 0x10
lea edi, [esi + 0x78]
jb 0x100ae058
mov edi, dword [edi]
cmp dword [esi + 0x2c], 0x10
lea ebx, [esi + 0x18]
jb 0x100ae063
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x100ae06b
mov esi, dword [esi]
call fcn.100adc50
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 0x100ae098
mov byte [ebp - 0xd], 1
jmp 0x100ae0a9
push dword [ebp - 0x14]
call fcn.100a66b0
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 0x100ae0cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x100ae0e7
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.100ae120
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.100d1c1a
call fcn.100d1c1a
int3