Function at 0x1009d3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7b10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10130fc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x1009d42c
lea eax, [edi - 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 [edi + 0x44], 0x10
lea esi, [edi + 0x30]
jb 0x1009d437
mov esi, dword [esi]
call fcn.1009d1c0
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10094cf0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x1009d45f
mov eax, dword [eax]
push eax
lea ecx, [ebx + 0x40]
call fcn.10030c90
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x1009d4a9
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d49f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009d662
push edx
push ecx
call fcn.100a20af
add esp, 8
cmp dword [edi + 0x5c], 0x10
lea esi, [edi + 0x48]
jb 0x1009d4b4
mov esi, dword [esi]
call fcn.1009d1c0
push 0xfde9
mov ebx, eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.10094cf0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x1009d4dc
mov eax, dword [eax]
push eax
lea ecx, [ebx + 0x5c]
call fcn.10030c90
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x1009d526
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d51c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009d667
push edx
push ecx
call fcn.100a20af
add esp, 8
cmp dword [edi + 0x74], 0x10
lea esi, [edi + 0x60]
jb 0x1009d531
mov esi, dword [esi]
call fcn.1009d1c0
mov edx, esi
lea ebx, [edx + 1]
nop dword [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1009d540
sub edx, ebx
lea ecx, [eax + 0x44]
push edx
push esi
call fcn.1000b050
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov dword [ebp - 0x18], eax
jb 0x1009d56a
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x8c], 0x10
lea ebx, [edi + 0x78]
jb 0x1009d578
mov ebx, dword [ebx]
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov dword [ebp - 0x1c], eax
jb 0x1009d589
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x14], 0x10
jb 0x1009d591
mov edi, dword [edi]
call fcn.1009d1c0
mov dword [ebp - 0x24], eax
call fcn.10009940
mov ecx, eax
test ecx, ecx
je 0x1009d66c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push esi
mov dword [ebp - 4], 2
call fcn.10031280
test al, al
jne 0x1009d5d3
push esi
lea ecx, [ebp - 0x14]
call fcn.10030c90
mov esi, dword [ebp - 0x14]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1009d5ee
mov byte [ebp - 0xd], 1
jmp 0x1009d5fd
push esi
call fcn.100964f0
add esp, 4
test eax, eax
sete byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009d61c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1009d638
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 - 0x24]
push ebx
push dword [ebp - 0x1c]
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.1009d680
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.100c042a
call fcn.100c042a
push 0x80004005
call fcn.10009730
int3