Function at 0x10003b10
Capabilities:
Check if file exists
Copy file
Delete directory
Delete file
Query or enumerate registry value
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x10006c7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call fcn.10001850
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi + 0x20c]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x870], ebx
mov dword [esp + 0x34], eax
jle 0x10004024
lea ebx, [eax*4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x208]
mov esi, dword [ebx + ecx]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10003b95
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10003fa4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, ebx
mov ebp, dword [edx + 0x208]
add edi, ebp
cmp eax, ecx
jne 0x10003bf0
test ecx, ecx
mov ebp, 1
je 0x10003bca
lea ebp, [eax + eax]
mov ecx, dword [esp + 0x14]
lea eax, [ebp*4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
test eax, eax
je 0x10003c17
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
lea ebp, [edx + eax*4 - 4]
test ebp, ebp
je 0x10003c17
mov eax, dword [edi]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x220]
test eax, eax
jne 0x10003c52
push esi
call fcn.10002f70
add esp, 4
cmp eax, 4
jne 0x10003c52
mov ecx, dword [esp + 0x10]
push esi
call fcn.100041f0
test eax, eax
je 0x10004007
mov dword [esp + 0x2c], 1
jmp 0x10004007
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebp, eax
mov ax, word [0x1000b448]
mov word [esp + 0x48], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.ftsurfmon
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x10003ca8
lea eax, [esp + 0x48]
push ebp
push eax
jmp 0x10003cb2
lea ecx, [esp + 0x48]
push str.ftsurfmon.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x48]
push str..cab
push edx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 4
push eax
push 0x22200c
mov ecx, 0x1000b450
call fcn.10001f40
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x48]
push ecx
call ebp
test eax, eax
je 0x10003eff
mov dx, word [0x1000b448]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x252]
mov word [esp + 0x250], dx
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x250]
push 0x100090d8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x250]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.100013f0
add esp, 8
test eax, eax
jne 0x10003eac
push esi
call ebp
test eax, eax
jne 0x10003eac
mov dx, word [0x1000b448]
mov ecx, 0x81
lea edi, [esp + 0x662]
mov word [esp + 0x660], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x660]
push eax
push ecx
push 0
push str.GreenSurfPlugin
push str.SoftwareFeiteng5Plugin
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [esp + 0x660]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10003eac
push str._ftlive.dll__ftsurfmon.dll_resore_fail__retry__n
call fcn.10001880
lea eax, [esp + 0x4c]
push 0x10009e44
push eax
call fcn.100013f0
add esp, 0xc
test eax, eax
je 0x10003eac
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dx, word [0x1000b448]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x45a]
mov word [esp + 0x458], dx
lea edx, [esp + 0x458]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x250]
and eax, 0xffff
push eax
push ecx
push str._sftsurfmon_02d.dll
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x458]
push 0
push eax
push str.c:_ftsurfmon.dll
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10003e8a
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x458]
inc edi
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 1
call fcn.10004300
add esp, 4
lea edx, [esp + 0x458]
lea eax, [esp + 0x458]
push edx
push eax
call ebp
push eax
push str._ftlive.dll__ftsurfmon.dll_resore_succeess_d___s_n
call fcn.10001880
add esp, 0xc
jmp 0x10003eff
push esi
call ebp
test eax, eax
je 0x10003eff
mov eax, dword [esp + 0x20]
push str..dll
inc eax
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10003ee4
push esi
call fcn.10004300
add esp, 4
lea ecx, [esp + 0x250]
push esi
lea edx, [esp + 0x4c]
push ecx
push edx
push str._ftlive.dll__restore_lost_file_s___s___s_n
call fcn.10001880
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 4
push eax
push 0x222010
mov ecx, 0x1000b450
call fcn.10001f40
mov ecx, dword [esp + 0x10]
xor edi, edi
add ebx, dword [ecx + 0x208]
mov ebp, ebx
mov ebx, ecx
mov eax, dword [ebx + 0x218]
test eax, eax
jle 0x10003f80
mov eax, dword [ebp]
mov edx, dword [ebx + 0x214]
test eax, eax
lea ecx, [edx + edi*4]
jne 0x10003f50
cmp dword [ecx], 0
je 0x10003f77
jmp 0x10003f6a
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003f6a
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete al
test al, al
jne 0x10003f77
mov eax, dword [ebx + 0x218]
inc edi
cmp edi, eax
jge 0x10003f80
jmp 0x10003f39
cmp edi, 0xffffffff
jne 0x10004007
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x10004007
mov eax, dword [esp + 0x28]
push eax
push esi
push str.Type1_SubType1_Path__s__Main1_Recover_d_
push 1
push 0x1000b56c
call fcn.100017b0
add esp, 0x14
jmp 0x10004007
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x10004007
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str..exe
push edi
call ebx
test eax, eax
jne 0x10004007
push str..dll
push edi
call ebx
test eax, eax
jne 0x10004007
push str..sys
push edi
call ebx
test eax, eax
jne 0x10004007
push esi
call fcn.10003000
add esp, 4
test eax, eax
jne 0x10004007
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str._ftlive.dll__delete_not_pe_file_s__return__d__error_d_n
call fcn.10001880
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
inc eax
mov edx, dword [ecx + 0x20c]
mov dword [esp + 0x34], eax
cmp eax, edx
jl 0x10003b6f
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp eax, ebx
je 0x10004071
cmp dword [esp + 0x14], ebx
je 0x10004069
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jle 0x1000405b
mov edx, dword [esp + 0x14]
mov eax, dword [edx + esi*4]
push eax
call edi
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x10004048
mov ecx, dword [esp + 0x14]
push ecx
call ebp
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
call fcn.10004100
cmp dword [esp + 0x2c], ebx
je 0x100040ae
push 1
push str.Type1_SubType7_
push 0x1000b56c
call fcn.10001680
push 1
push str.SeShutdownPrivilege
call fcn.10002da0
add esp, 0x14
push ebx
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp dword [esp + 0x14], ebx
je 0x100040db
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jle 0x100040d1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x100040be
mov edx, dword [esp + 0x14]
push edx
call ebp
add esp, 4
mov ecx, dword [esp + 0x868]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x864
ret