Function at 0x407a00
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [0x412904]
push 0xffffffffffffffff
push 0x40c0cd
push eax
mov eax, dword [0x412908]
mov dword fs:[0], esp
sub esp, 0x624
push eax
push ecx
mov ecx, 0x412900
call fcn.00408ab0
mov edx, dword [0x4128f8]
mov eax, dword [0x4128f4]
push edx
push eax
mov ecx, 0x4128f0
call fcn.00408ab0
mov ecx, dword [0x4128e8]
mov edx, dword [0x4128e4]
push ecx
push edx
mov ecx, 0x4128e0
call fcn.00408ab0
lea eax, [esp + 0x520]
push 0x104
push eax
call fcn.00408150
add esp, 8
test eax, eax
jne 0x407a8f
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
add esp, 0x630
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x52c]
push edi
push ecx
push str.clsid_s
lea edx, [esp + 0x22c]
push 0x208
push edx
call fcn.00403280
lea eax, [esp + 0x234]
push eax
push 0x80000000
call fcn.00402e50
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x18
or ebp, 0xffffffff
test eax, eax
je 0x407ba8
mov ecx, dword [str.4A_A]
lea edx, [esp + 0x224]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x407b51
lea eax, [esp + 0x224]
shr eax, 0x10
jne 0x407b11
xor eax, eax
lea ecx, [esp + 0x224]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00402760
jmp 0x407b51
lea edx, [esp + 0x224]
push edx
call ebx
mov esi, eax
test esi, esi
je 0x407b51
push esi
lea ecx, [esp + 0x14]
call fcn.00402b00
test eax, eax
je 0x407b51
lea eax, [esi + 1]
cmp eax, esi
jb 0x407b51
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x224]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4128e8]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x4128e0
mov dword [esp + 0x644], 0
call fcn.00408900
mov eax, dword [esp + 0x10]
mov ecx, dword [0x410024]
mov dword [esp + 0x63c], ebp
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x407ba8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407ba8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040a920
add esp, 4
call fcn.00408300
test eax, eax
je 0x407c69
mov ecx, dword [str.4A_A]
mov edx, str.SoftWare8749_technologies
test edx, edx
mov dword [esp + 0x10], ecx
je 0x407c12
mov eax, edx
shr eax, 0x10
jne 0x407be2
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00402760
jmp 0x407c12
push str.SoftWare8749_technologies
call ebx
mov esi, eax
test esi, esi
je 0x407c12
push esi
lea ecx, [esp + 0x14]
call fcn.00402b00
test eax, eax
je 0x407c12
mov edx, dword [esp + 0x10]
push esi
inc esi
push str.SoftWare8749_technologies
push esi
push edx
call fcn.00402960
add esp, 0x10
mov ecx, dword [0x4128f8]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x4128f0
mov dword [esp + 0x644], 1
call fcn.00408900
mov eax, dword [esp + 0x10]
mov ecx, dword [0x410024]
mov dword [esp + 0x63c], ebp
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x407c69
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407c69
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040a920
add esp, 4
lea ecx, [esp + 0x120]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x42c]
push edx
call fcn.00404520
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 4
test eax, eax
je 0x407d7d
lea eax, [esp + 0x42c]
lea ecx, [esp + 0x1c]
push eax
push str._s_rasadhlp.dll
push 0x104
push ecx
call fcn.00403280
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
call edi
cmp eax, ebp
je 0x407d7d
mov eax, dword [str.4A_A]
lea ecx, [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x407d27
lea edx, [esp + 0x1c]
shr edx, 0x10
jne 0x407cf7
xor eax, eax
lea ecx, [esp + 0x1c]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00402760
jmp 0x407d27
lea edx, [esp + 0x1c]
push edx
call ebx
mov esi, eax
test esi, esi
je 0x407d27
push esi
lea ecx, [esp + 0x14]
call fcn.00402b00
test eax, eax
je 0x407d27
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x20]
inc esi
push eax
push esi
push ecx
call fcn.00402960
add esp, 0x10
mov eax, dword [0x412908]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x412900
mov dword [esp + 0x644], 2
call fcn.00408900
mov eax, dword [esp + 0x10]
mov edx, dword [0x410024]
mov dword [esp + 0x63c], ebp
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407d7d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407d7d
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0040a920
add esp, 4
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push eax
push str._sload.dll
push 0x104
push ecx
call fcn.00403280
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
call edi
cmp eax, ebp
je 0x407e60
mov eax, dword [str.4A_A]
lea ecx, [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x407e0a
lea edx, [esp + 0x1c]
shr edx, 0x10
jne 0x407dda
xor eax, eax
lea ecx, [esp + 0x1c]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00402760
jmp 0x407e0a
lea edx, [esp + 0x1c]
push edx
call ebx
mov esi, eax
test esi, esi
je 0x407e0a
push esi
lea ecx, [esp + 0x14]
call fcn.00402b00
test eax, eax
je 0x407e0a
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x20]
inc esi
push eax
push esi
push ecx
call fcn.00402960
add esp, 0x10
mov eax, dword [0x412908]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x412900
mov dword [esp + 0x644], 3
call fcn.00408900
mov eax, dword [esp + 0x10]
mov edx, dword [0x410024]
mov dword [esp + 0x63c], ebp
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407e60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407e60
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0040a920
add esp, 4
mov esi, 0x411c20
mov ebx, 4
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x104]
push eax
push ecx
push edx
push esi
call fcn.00408020
add esp, 0x10
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push esi
push eax
push str._s_s.dll
push 0x104
push ecx
call fcn.00403280
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
call edi
cmp eax, ebp
je 0x407f14
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.004086d0
mov edx, dword [0x412908]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, 0x412900
mov dword [esp + 0x644], ebx
call fcn.00408900
mov eax, dword [esp + 0x10]
mov edx, dword [0x410024]
mov dword [esp + 0x63c], ebp
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407f14
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407f14
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0040a920
add esp, 4
lea eax, [esp + 0x120]
push esi
push eax
push str._s_s.sys
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00403280
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
call edi
cmp eax, ebp
je 0x407f7e
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.004086d0
mov edx, dword [0x412908]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x412900
mov dword [esp + 0x644], 5
call fcn.00408900
lea ecx, [esp + 0x14]
mov dword [esp + 0x63c], ebp
call fcn.00401e50
lea eax, [esp + 0x42c]
push esi
push eax
push str._s_s.dll
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00403280
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
call edi
cmp eax, ebp
je 0x407fe8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
call fcn.004086d0
mov edx, dword [0x412908]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x412900
mov dword [esp + 0x644], 6
call fcn.00408900
lea ecx, [esp + 0x18]
mov dword [esp + 0x63c], ebp
call fcn.00401e50
add esi, 0x110
cmp esi, str._s_s.sys
jb 0x407e6a
call fcn.00408320
xor ecx, ecx
pop edi
cmp ecx, eax
mov ecx, dword [esp + 0x630]
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
mov dword fs:[0], ecx
add esp, 0x630
ret