Function at 0x100317c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3e96
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1025e344]
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 ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x100320a1
push esi
call fcn.10048f30
push 2
push esi
call fcn.10087bd0
add esp, 8
test eax, eax
je 0x100320a1
push 3
push esi
call fcn.10087bd0
add esp, 8
test eax, eax
je 0x100320a1
push 4
push esi
call fcn.10087bd0
add esp, 8
test eax, eax
je 0x100320a1
push 0xfde9
push edi
push 2
push esi
call fcn.100887a0
add esp, 0xc
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100d1710
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
jb 0x10031865
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10003660
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.10003a70
push 0xfde9
push 0
push 3
push esi
call fcn.100887a0
add esp, 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100d1710
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x100318a7
mov edx, dword [edx]
lea edi, [ebx + 0xc]
test edx, edx
jne 0x100318b2
xor ecx, ecx
jmp 0x100318c9
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100318b7
sub ecx, edi
lea edi, [ebx + 0xc]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10006ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10003a70
push 0xfde9
push 0
push 4
push esi
call fcn.100887a0
add esp, 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100d1710
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x1003190b
mov edx, dword [edx]
lea eax, [ebx + 0x10]
test edx, edx
jne 0x10031916
xor ecx, ecx
jmp 0x10031932
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031920
sub ecx, esi
lea eax, [ebx + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.10006ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10003a70
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x78], esp
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
call fcn.100088d0
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x64]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x78], esp
mov dword [ebp - 0x58], esi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100320c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov ecx, esi
push 0x1020094c
call fcn.10004060
test al, al
jne 0x100319f2
push 1
push 0x1020094c
mov ecx, esi
call fcn.10006ab0
mov byte [ebp - 4], 0xa
push ecx
mov esi, esp
mov dword [ebp - 0x58], esp
mov dword [ebp - 0x88], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 8
call fcn.10081c10
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov ecx, dword [ebp - 0x60]
or esi, 0xffffffff
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
cmp eax, ecx
je 0x10031fad
nop dword [eax]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0xe
lea edx, [eax - 0x10]
mov ecx, dword [edi]
mov dword [ebp - 0x74], edx
lea edi, [ecx - 0x10]
cmp edx, edi
je 0x10031ab5
cmp dword [edi + 0xc], 0
jl 0x10031aa3
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x10031aa3
push edx
call fcn.100041a0
mov dword [ebp - 0x54], eax
lea ecx, [edi + 0xc]
add esp, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10031a98
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
add ecx, 0x10
mov dword [ebx + 0xc], ecx
jmp 0x10031ab2
push dword [eax - 0xc]
lea ecx, [ebx + 0xc]
push eax
call fcn.10006ab0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x74]
cmp dword [ecx - 0xc], 0
jne 0x10031ac4
mov byte [ebp - 4], 8
jmp 0x10031f83
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
cmp eax, ecx
je 0x10031f7c
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.100041a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x98], esi
mov byte [ebp - 4], 0x11
lea edi, [esi - 0x10]
mov ecx, dword [ebx + 8]
sub ecx, 0x10
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x90], ecx
cmp edi, ecx
je 0x10031b6a
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x8c], eax
jl 0x10031b5e
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x10031b5e
push edi
call fcn.100041a0
mov ecx, dword [ebp - 0x8c]
add esp, 4
mov dword [ebp - 0x84], eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10031b50
mov edx, dword [ebp - 0x90]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x84]
add eax, 0x10
mov dword [ebx + 8], eax
jmp 0x10031b6a
push dword [esi - 0xc]
lea ecx, [ebx + 8]
push esi
call fcn.10006ab0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10031b7a
jmp 0x10031f2f
mov ecx, ebx
call fcn.100313e0
test eax, eax
jne 0x10031b8a
jmp 0x10031f2f
mov ecx, ebx
call fcn.10048df0
test eax, eax
jne 0x10031f5e
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x10031bca
push 0x3c
call fcn.100cff51
add esp, 4
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x10031bc1
mov ecx, eax
call fcn.100ab460
jmp 0x10031bc3
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [ebx + 0x20], eax
mov byte [eax + 8], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x20]
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.100315b0
test eax, eax
je 0x10031f13
lea ecx, [ebp - 0x38]
call fcn.1002a0a0
mov byte [ebp - 4], 0x16
mov eax, dword [ebx + 4]
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], 2
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
add edx, 0x11c
cmp dword [edx + 0x14], 8
jb 0x10031c22
mov edx, dword [edx]
test edx, edx
jne 0x10031c2a
xor eax, eax
jmp 0x10031c3f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10031c30
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.10006ab0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
add edx, 0xdc
cmp dword [edx + 0x14], 8
jb 0x10031c5f
mov edx, dword [edx]
test edx, edx
jne 0x10031c67
xor ecx, ecx
jmp 0x10031c7f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031c70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.10006ab0
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.100079d0
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x84], esp
mov dword [ebp - 0xa0], edi
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
lea esi, [edi + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0xa4], esi
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x18
lea esi, [edi + 0x18]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x14], eax
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1a
lea esi, [edi + 0x1c]
mov dword [ebp - 0xac], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1c
lea esi, [edi + 0x20]
mov dword [ebp - 0xb0], esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov byte [ebp - 4], 0x16
call dword [eax]
push 0x50
call fcn.100cff51
mov esi, eax
add esp, 4
mov dword [ebp - 0xb4], esi
mov byte [ebp - 4], 0x20
test esi, esi
je 0x10031e6a
push 0x50
push 0
push esi
call fcn.101a08b0
lea eax, [esi + 4]
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0x22
xor eax, eax
mov dword [esi], vtable.ResultItem.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov byte [ebp - 4], 0x23
mov dword [esi + 0x24], 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 7
mov word [esi + 0x28], ax
mov byte [ebp - 4], 0x24
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 0x25
lea edi, [esi + 0x48]
mov dword [esi], vtable.ResultDB.0
mov dword [ebp - 0xbc], edi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100320c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x26
mov ecx, edi
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x10031e1c
push 0
push 0x101fe8a0
mov ecx, edi
call fcn.10006ab0
mov byte [ebp - 4], 0x27
lea edi, [esi + 0x4c]
mov dword [ebp - 0xc0], edi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100320c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x28
mov ecx, edi
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x10031e64
push 0
push 0x101fe8a0
mov ecx, edi
call fcn.10006ab0
mov byte [ebp - 4], 0x20
jmp 0x10031e6c
xor esi, esi
mov byte [ebp - 4], 0x16
mov edx, dword [ebx + 8]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031e80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x28]
call fcn.10007210
mov eax, dword [ebx + 4]
lea edi, [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
cmp edi, eax
je 0x10031ec2
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10031eb2
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, edi
push edx
call fcn.10007210
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
xor ecx, ecx
cmp dword [eax + 0x30], 1
lea eax, [ebx + 0x10]
push eax
sete cl
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x4c]
call fcn.100079d0
lea eax, [ebx + 0xc]
push eax
lea ecx, [esi + 0x48]
call fcn.100079d0
mov ecx, dword [ebx + 0x20]
push 0
push esi
call fcn.100a9260
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax]
mov dword [eax + 0x40], ecx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x38]
call fcn.1002a250
mov edi, dword [ebp - 0x88]
jmp 0x10031f27
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x10031f20
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x20], 0
lea ecx, [ebx + 0x14]
call fcn.100d5f10
mov byte [ebp - 4], 0xe
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10031f4a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 4
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x58]
jne 0x10031ad8
jmp 0x10031f7c
mov byte [ebp - 4], 0xe
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031f7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x74]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031f97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
add eax, 4
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x78]
je 0x10031fad
lea edi, [ebx + 0xc]
jmp 0x10031a40
mov edi, 1
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x1003201c
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x60]
push eax
call fcn.10007490
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x64]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031ffd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100320cb
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10032082
lea ecx, [ebp - 0x70]
push ecx
push dword [ebp - 0x6c]
push eax
call fcn.10007490
mov eax, dword [ebp - 0x68]
add esp, 0xc
mov ecx, dword [ebp - 0x70]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032063
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100320d0
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100320a1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.100d02f2
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004040
call fcn.101a3dde
call fcn.101a3dde
int3