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

Disassembly:
push 0xffffffffffffffff
push 0x5c52a3
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.0040a200
lea ecx, [esp + 0x28]
call fcn.005aa965
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00479f50
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.0047a070
test eax, eax
je 0x409f2e
push ebp
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.005aa965
lea eax, [esp + 0x48]
lea ecx, [esp + 0x24]
push eax
push str.ExDataList
mov byte [esp + 0x6c], 2
call fcn.0047abf0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.005aab41
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.005aa9f8
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
push str.ExDataList2
call fcn.0047abf0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.005aab41
lea ecx, [esp + 0x24]
call fcn.0047a0c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.005aa998
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.00479ff0
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x409f03
lea ecx, [esp + 0x2c]
call fcn.00403730
push 0x64bfd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 3
call fcn.005ac5b7
mov eax, dword [esp + 0x10]
mov byte [esp + 0x64], 4
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409bf0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push edx
call fcn.00401f90
push eax
lea eax, [esp + 0x18]
push 0x622a00
push eax
call fcn.005a91ab
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409bd9
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.005aad7c
lea ecx, [esp + 0x10]
call fcn.005ac4cb
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x409ee7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409b94
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x409ee7
push 0
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00403ed0
test eax, eax
je 0x409ea7
lea ecx, [esp + 0x14]
call fcn.0047d160
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
call fcn.004042f0
test eax, eax
je 0x409e90
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.0047d340
lea ecx, [esp + 0x14]
call fcn.0047d330
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0047da70
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.0047d330
push eax
lea ecx, [esp + 0x18]
call fcn.0047da70
push eax
lea ecx, [esp + 0x34]
call fcn.00403f60
test eax, eax
je 0x409e90
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x20], ebp
inc ebp
test ebp, ebp
jne 0x409cd2
xor ebp, ebp
cmp esi, ebp
je 0x409cc7
mov ecx, eax
dec eax
test ecx, ecx
je 0x409cb8
lea edi, [eax + 1]
mov ecx, esi
call fcn.0047d290
add esi, 4
dec edi
jne 0x409cab
mov eax, dword [ebx + 4]
push eax
call fcn.005acc35
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x409e7c
test esi, esi
jne 0x409d34
lea edi, [ebp*4]
push edi
call fcn.005acc0c
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 0x409d1a
mov ecx, esi
call fcn.0047d160
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x409d06
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x409e7c
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x409dad
cmp eax, ebp
jge 0x409d87
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 0x409da5
lea edi, [edx + 1]
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x64], 7
je 0x409d70
mov ecx, esi
call fcn.0047d160
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x409d5c
mov dword [ebx + 8], ebp
jmp 0x409e7c
jle 0x409da5
sub eax, ebp
lea esi, [esi + ebp*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x409da5
lea edi, [eax + 1]
mov ecx, esi
call fcn.0047d290
add esi, 4
dec edi
jne 0x409d98
mov dword [ebx + 8], ebp
jmp 0x409e7c
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x409dd8
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x409dcb
mov ecx, 4
jmp 0x409dd8
cmp ecx, 0x400
jle 0x409dd8
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x18], eax
jl 0x409de7
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
call fcn.005acc0c
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 0x409e5d
lea edi, [edx + 1]
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x64], 8
je 0x409e4e
mov ecx, esi
call fcn.0047d160
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x1c], esi
jne 0x409e3a
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 4]
push eax
call fcn.005acc35
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.0047d2c0
lea ecx, [esp + 0x2c]
call fcn.00404180
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 4
call fcn.0047d290
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.005aad7c
lea ecx, [esp + 0x10]
call fcn.005ac4cb
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.005ac543
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.004038d0
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x409b68
jmp 0x409f03
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.005ac543
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.004038d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
call fcn.005aa998
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.00479ff0
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.005aa998
mov ecx, dword [esp + 0x50]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4