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

Disassembly:
push 0xffffffffffffffff
push 0x5a0e13
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.00409bc0
lea ecx, [esp + 0x28]
call fcn.005864f7
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00474030
push 0x20019
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.00474150
test eax, eax
je 0x4098ee
push ebp
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.005864f7
lea eax, [esp + 0x48]
lea ecx, [esp + 0x24]
push eax
push str.ExDataList
mov byte [esp + 0x6c], 2
call fcn.00474cd0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.005866d3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
call fcn.0058658a
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
push str.ExDataList2
call fcn.00474cd0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.005866d3
lea ecx, [esp + 0x24]
call fcn.004741a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 1
call fcn.0058652a
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.004740d0
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4098c3
lea ecx, [esp + 0x2c]
call fcn.00403470
push 0x620918
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 3
call fcn.00588149
mov eax, dword [esp + 0x10]
mov byte [esp + 0x64], 4
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4095b0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push edx
call fcn.00401f90
push eax
lea eax, [esp + 0x18]
push 0x5f8c58
push eax
call fcn.00584d3d
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409599
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.0058690e
lea ecx, [esp + 0x10]
call fcn.0058805d
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4098a7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409554
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4098a7
push 0
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00403c10
test eax, eax
je 0x409867
lea ecx, [esp + 0x14]
call fcn.00477240
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
call fcn.00404030
test eax, eax
je 0x409850
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00477420
lea ecx, [esp + 0x14]
call fcn.00477410
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00477b50
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.00477410
push eax
lea ecx, [esp + 0x18]
call fcn.00477b50
push eax
lea ecx, [esp + 0x34]
call fcn.00403ca0
test eax, eax
je 0x409850
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x20], ebp
inc ebp
test ebp, ebp
jne 0x409692
xor ebp, ebp
cmp esi, ebp
je 0x409687
mov ecx, eax
dec eax
test ecx, ecx
je 0x409678
lea edi, [eax + 1]
mov ecx, esi
call fcn.00477370
add esi, 4
dec edi
jne 0x40966b
mov eax, dword [ebx + 4]
push eax
call fcn.005887c7
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x40983c
test esi, esi
jne 0x4096f4
lea edi, [ebp*4]
push edi
call fcn.0058879e
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 0x4096da
mov ecx, esi
call fcn.00477240
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x4096c6
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x40983c
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x40976d
cmp eax, ebp
jge 0x409747
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 0x409765
lea edi, [edx + 1]
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x64], 7
je 0x409730
mov ecx, esi
call fcn.00477240
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x18], esi
jne 0x40971c
mov dword [ebx + 8], ebp
jmp 0x40983c
jle 0x409765
sub eax, ebp
lea esi, [esi + ebp*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x409765
lea edi, [eax + 1]
mov ecx, esi
call fcn.00477370
add esi, 4
dec edi
jne 0x409758
mov dword [ebx + 8], ebp
jmp 0x40983c
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x409798
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x40978b
mov ecx, 4
jmp 0x409798
cmp ecx, 0x400
jle 0x409798
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x18], eax
jl 0x4097a7
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
call fcn.0058879e
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 0x40981d
lea edi, [edx + 1]
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x64], 8
je 0x40980e
mov ecx, esi
call fcn.00477240
add esi, 4
dec edi
mov byte [esp + 0x64], 5
mov dword [esp + 0x1c], esi
jne 0x4097fa
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 4]
push eax
call fcn.005887c7
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.004773a0
lea ecx, [esp + 0x2c]
call fcn.00403ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 4
call fcn.00477370
push 1
push 0
lea ecx, [esp + 0x3c]
call fcn.0058690e
lea ecx, [esp + 0x10]
call fcn.0058805d
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.005880d5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.00403610
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x409528
jmp 0x4098c3
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call fcn.005880d5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0
call fcn.00403610
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
call fcn.0058652a
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.004740d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.0058652a
mov ecx, dword [esp + 0x50]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4