Function at 0x10090f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d30f
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x250], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0
push eax
call fcn.10042e70
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24c], esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x240]
call fcn.10041f60
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
test eax, eax
je 0x1009133a
push eax
push dword [ebp - 0x240]
call fcn.10155520
add esp, 8
test eax, eax
je 0x10091085
add esi, 0xfffffff0
push esi
call fcn.10042e70
mov edx, dword [ebp - 0x240]
add eax, 0x10
mov dword [edi], eax
add esp, 4
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10091045
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009105d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10091319
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x10091319
push 0x101a31ac
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10159080
add esp, 0xc
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x23c]
push eax
call fcn.1007c6d0
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x234], xmm0
push 8
mov byte [ebp - 4], 3
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x224], 0
call fcn.1012656a
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x234]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x234]
mov dword [eax], ecx
mov eax, ecx
mov byte [ebp - 4], 4
push 0x101a1458
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.1007c550
mov ecx, dword [ebp - 0x228]
add esp, 0x10
mov eax, dword [ebp - 0x224]
or edi, 0xffffffff
add eax, ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x250], eax
cmp ecx, eax
je 0x1009125a
nop word [eax + eax]
mov edx, dword [ebp - 0x22c]
mov eax, ecx
shr eax, 2
dec edx
and edx, eax
and ecx, 3
mov eax, dword [ebp - 0x230]
push 0x208
push 0
mov eax, dword [eax + edx*4]
lea esi, [eax + ecx*4]
lea eax, [ebp - 0x218]
push eax
call fcn.1014de30
push dword [esi]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10158db0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1004e7c0
add esp, 0xc
push dword [ebp - 0x21c]
mov byte [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10091227
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009120c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x248]
inc ecx
mov dword [ebp - 0x248], ecx
cmp ecx, dword [ebp - 0x250]
jne 0x10091160
jmp 0x1009125a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.1004e420
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009125a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24c]
add esi, 0xfffffff0
push esi
call fcn.10042e70
mov ecx, dword [ebp - 0x244]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.1007d7e0
push 8
push dword [ebp - 0x234]
call fcn.1012659a
mov edx, dword [ebp - 0x220]
add esp, 8
mov dword [ebp - 0x234], 0
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100912c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100912e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100912fa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10091319
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10042d10
int3