Function at 0x100dc5e0
Capabilities:
Check if file exists
Get file attributes
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10124476
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xe4], eax
call fcn.10022690
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x100dc63f
push 0x80004005
call fcn.100223c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xdc], edi
mov byte [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100dc66d
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe0], esi
mov byte [ebp - 4], 2
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100dc69d
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xe8], ebx
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xcc], eax
jmp 0x100dc6c6
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xcc]
push eax
push 0x1012ee38
lea eax, [ebp - 0xf0]
push eax
call fcn.10026640
mov byte [ebp - 4], 4
lea ecx, [ebx - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0xc4], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0xd0], eax
cmp eax, ecx
je 0x100dc766
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x100dc751
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100dc751
mov ecx, dword [ebp - 0xd0]
call fcn.10024750
mov dword [ebp - 0xd0], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x100dc746
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xd0]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xe8], ebx
jmp 0x100dc766
push dword [edx - 0xc]
lea ecx, [ebp - 0xe8]
push edx
call fcn.10024680
mov ebx, dword [ebp - 0xe8]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dc78a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
cmp eax, 0xffffffff
je 0x100dce2f
push ecx
mov ecx, dword [ebx - 0x10]
mov dword [ebp - 0xc8], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xc4], eax
jl 0x100dc7d7
cmp edx, dword [ecx]
jne 0x100dc7d7
mov edx, dword [ebp - 0xc4]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100dc81e
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0xc4], edx
test edx, edx
je 0x100dce2a
mov ecx, dword [ebx - 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [ebx - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push ebx
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10103d20
mov ecx, dword [ebp - 0xc4]
add esp, 0x10
mov edx, dword [ebp - 0xc8]
lea eax, [ecx + 0x10]
lea ecx, [ebp - 0xc0]
mov dword [edx], eax
call fcn.1003d120
add esp, 4
test eax, eax
jne 0x100dc6c0
push ecx
mov ecx, dword [ebx - 0x10]
mov dword [ebp - 0xc0], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xc8], eax
jl 0x100dc87d
cmp edx, dword [ecx]
jne 0x100dc87d
mov dword [ebp - 0xc4], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc8]
lock xadd dword [ecx], eax
jmp 0x100dc8c2
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x100dce2a
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebx - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push ebx
push eax
mov eax, dword [ebp - 0xc4]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0xf8]
call fcn.1003cd10
add esp, 4
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x100dc93f
cmp dword [edi + 0xc], 0
jl 0x100dc930
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100dc930
call fcn.10024750
mov dword [ebp - 0xc0], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100dc925
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc0]
add eax, 0x10
mov dword [ebp - 0xdc], eax
jmp 0x100dc93f
push dword [edx - 0xc]
lea ecx, [ebp - 0xdc]
push edx
call fcn.10024680
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0xf8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dc963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa4
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.101078f0
mov ecx, dword [ebx - 0x10]
lea edi, [ebx - 0x10]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x100dc99e
cmp ecx, dword [edi]
jne 0x100dc99e
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100dc9e4
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x100dce2a
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [edi + 4]
lea eax, [edx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.10103d20
mov edi, dword [ebp - 0xc0]
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x100], edi
mov byte [ebp - 4], 6
cmp dword [0x101726a0], 0
jne 0x100dca0d
cmp dword [0x1017229c], 0
mov dword [ebp - 0xc4], 0
je 0x100dca17
mov dword [ebp - 0xc4], 1
lea eax, [ebp - 0xbc]
add edi, 0xfffffff0
push eax
push ecx
mov dword [ebp - 0xc8], esp
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x100dca4b
cmp ecx, dword [edi]
jne 0x100dca4b
mov ecx, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x100dca93
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0xc0], edx
test edx, edx
je 0x100dce2a
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10103d20
mov ecx, dword [ebp - 0xc0]
add esp, 0x10
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 0xc8]
lea edx, [ebp - 0xdc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc4]
call fcn.1002ad90
add esp, 8
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100dcad9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xdc]
test eax, eax
je 0x100dc6c0
push 0
push 0
push 0
push ecx
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0xc8], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [edi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0xc0], eax
jl 0x100dcb2b
cmp edx, dword [ecx]
jne 0x100dcb2b
mov dword [ebp - 0xc4], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc0]
lock xadd dword [ecx], eax
jmp 0x100dcb70
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x100dce2a
mov ecx, dword [edi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push edi
push eax
mov eax, dword [ebp - 0xc4]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x58]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x108]
call fcn.1003d3b0
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0xc8], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0xc0], eax
cmp eax, ecx
je 0x100dcc0e
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x100dcbf9
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x100dcbf9
mov ecx, dword [ebp - 0xc0]
call fcn.10024750
mov dword [ebp - 0xc0], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100dcbee
mov esi, dword [ebp - 0xc8]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc0]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe0], esi
jmp 0x100dcc0e
push dword [edx - 0xc]
lea ecx, [ebp - 0xe0]
push edx
call fcn.10024680
mov esi, dword [ebp - 0xe0]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x108]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcc32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc0], eax
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push esi
setne cl
mov dword [ebp - 0xe4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0xc0]
xor ecx, ecx
cmp eax, 0xffffffff
push dword [0x1016f5d0]
setne cl
mov dword [ebp - 0xc8], ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0xc8], 0
jne 0x100dcce7
push esi
lea eax, [ebp - 0x104]
push str.Dir_in_PathToFile_not_deployed_yet__creating_it_just_to_avoid_PATH_NOT_FOUND:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call fcn.10043b30
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x104]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcce0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.10046c10
cmp dword [ebp - 0xe4], 0
jne 0x100dcd39
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd0]
sub eax, ecx
dec eax
push eax
push ecx
mov ecx, dword [ebp - 0xd4]
call fcn.10026580
mov ecx, dword [ebp - 0xd4]
push esi
push dword [ebp - 0xd8]
call fcn.1002c880
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xe4], 1
jmp 0x100dc6c6
push 0x1012ee38
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0xfc]
call fcn.10026820
add esp, 4
mov ecx, dword [ebp - 0xd4]
mov byte [ebp - 4], 9
push dword [eax]
push dword [ebp - 0xd8]
call fcn.1002c880
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0xfc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcd8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xcc]
push eax
push 0x1012ee38
lea eax, [ebp - 0xf4]
push eax
call fcn.10026640
mov edx, dword [ebp - 0xf4]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcdd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xcc]
push eax
push 0x1012ee38
lea eax, [ebp - 0xec]
push eax
call fcn.10026640
mov edx, dword [ebp - 0xec]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dce15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe4], 1
jmp 0x100dc6c6
call fcn.10024740
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x100dce87
mov eax, dword [ebp - 0xd4]
push dword [eax]
lea eax, [ebp - 0xec]
push str.PathToFile_New__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call fcn.10043b30
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0xec]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dce87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcea7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcec4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100dcee1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x100dcf02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret