Function at 0x4096f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5b68e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x60]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00409e80
lea ecx, [esp + 0x28]
call fcn.0059bfb1
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00477960
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.00477a80
test eax, eax
je 0x409bae
push ebp
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.0059bfb1
lea eax, [esp + 0x48]
lea ecx, [esp + 0x24]
push eax
push str.ExDataList
mov byte [esp + 0x6c], 2
call fcn.00478600
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.0059c18d
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.0059c044
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
push str.ExDataList2
call fcn.00478600
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.0059c18d
lea ecx, [esp + 0x24]
call fcn.00477ad0
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.0059bfe4
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.00477a00
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x409b83
lea ecx, [esp + 0x2c]
call fcn.00403730
push 0x6399d8
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 3
call fcn.0059dc03
mov eax, dword [esp + 0x10]
mov byte [esp + 0x64], 4
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409870
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push edx
call fcn.00401f90
push eax
lea eax, [esp + 0x18]
push 0x610c70
push eax
call fcn.0059a7f7
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409859
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.0059c3c8
lea ecx, [esp + 0x10]
call fcn.0059db17
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x409b67
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409814
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x409b67
push 0
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00403ed0
test eax, eax
je 0x409b27
lea ecx, [esp + 0x14]
call fcn.0047ab70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
call fcn.004042f0
test eax, eax
je 0x409b10
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.0047ad50
lea ecx, [esp + 0x14]
call fcn.0047ad40
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0047b480
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
call fcn.0047ad40
push eax
lea ecx, [esp + 0x18]
call fcn.0047b480
push eax
lea ecx, [esp + 0x34]
call fcn.00403f60
test eax, eax
je 0x409b10
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x20], ebp
inc ebp
test ebp, ebp
jne 0x409952
xor ebp, ebp
cmp esi, ebp
je 0x409947
mov ecx, eax
dec eax
test ecx, ecx
je 0x409938
lea edi, [eax + 1]
mov ecx, esi
call fcn.0047aca0
add esi, 4
dec edi
jne 0x40992b
mov eax, dword [ebx + 4]
push eax
call fcn.0059e281
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x409afc
test esi, esi
jne 0x4099b4
lea edi, [ebp*4]
push edi
call fcn.0059e258
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebx + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], esi
rep stosb byte es:[edi], al
lea edi, [ebp]
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x64], 6
je 0x40999a
mov ecx, esi
call fcn.0047ab70
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x409986
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x409afc
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x409a2d
cmp eax, ebp
jge 0x409a07
mov edx, ebp
lea esi, [esi + eax*4]
sub edx, eax
xor eax, eax
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, edx
dec edx
test eax, eax
mov dword [esp + 0x18], esi
je 0x409a25
lea edi, [edx + 1]
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x64], 7
je 0x4099f0
mov ecx, esi
call fcn.0047ab70
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x4099dc
mov dword [ebx + 8], ebp
jmp 0x409afc
jle 0x409a25
sub eax, ebp
lea esi, [esi + ebp*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x409a25
lea edi, [eax + 1]
mov ecx, esi
call fcn.0047aca0
add esi, 4
dec edi
jne 0x409a18
mov dword [ebx + 8], ebp
jmp 0x409afc
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x409a58
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x409a4b
mov ecx, 4
jmp 0x409a58
cmp ecx, 0x400
jle 0x409a58
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x18], eax
jl 0x409a67
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
call fcn.0059e258
mov ebx, eax
mov eax, dword [esp + 0x70]
mov edi, ebx
add esp, 4
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 8]
sub edx, eax
lea esi, [ebx + eax*4]
mov ecx, edx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, edx
dec edx
test eax, eax
mov dword [esp + 0x1c], esi
je 0x409add
lea edi, [edx + 1]
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x64], 8
je 0x409ace
mov ecx, esi
call fcn.0047ab70
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x1c], esi
jne 0x409aba
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 4]
push eax
call fcn.0059e281
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ebx
add esp, 4
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ecx
mov ebx, esi
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
lea ecx, [eax + ecx*4]
call fcn.0047acd0
lea ecx, [esp + 0x2c]
call fcn.00404180
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 4
call fcn.0047aca0
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.0059c3c8
lea ecx, [esp + 0x10]
call fcn.0059db17
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.0059db8f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.004038d0
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x4097e8
jmp 0x409b83
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.0059db8f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.004038d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
call fcn.0059bfe4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0
call fcn.00477a00
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.0059bfe4
mov ecx, dword [esp + 0x50]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4