Function at 0x1002595a
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10032138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push ebx
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0x424], ax
lea edi, reloc.ADVAPI32.dll_TraceMessage
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x18
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call sub.KERNEL32.dll_GetSystemTime
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov ecx, edi
call fcn.1000476f
push eax
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.10001075
mov esi, eax
test esi, esi
jns 0x10025a3c
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e49
test byte [eax + 0x1c], 2
je 0x10025e49
push esi
push 0x1000c0b0
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fead
jmp 0x10025e49
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [0x100327b0]
mov ecx, eax
test ecx, ecx
jne 0x10025a85
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025a73
test byte [eax + 0x1c], 2
je 0x10025a73
push 0x1000c0b0
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
jmp 0x10025e49
push dword [edi + 0x110]
movzx eax, word [ebp - 0x416]
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
push ecx
lea ecx, [edi + 0x18]
call fcn.1000476f
push eax
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push dword [eax + 0x60]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x10025e70
push 0x104
push eax
call fcn.100010fa
mov esi, eax
add esp, 0x3c
test esi, esi
jns 0x10025b1f
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e49
test byte [eax + 0x1c], 2
je 0x10025e49
push esi
push 0x1000c0b0
push 0x51
jmp 0x10025a2c
mov eax, dword [edi + reloc.ADVAPI32.dll_TraceMessage]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x10025d49
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
cmp esi, reloc.ADVAPI32.dll_TraceMessage
jne 0x10025b86
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e49
test byte [eax + 0x1c], 2
je 0x10025e49
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push 0x52
mov eax, dword [0x100320c8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x10025e49
push esi
call fcn.10001501
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10025bc9
mov esi, 0x8007000e
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e4d
test byte [eax + 0x1c], 2
je 0x10025e4d
push 0x1000c0b0
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
jmp 0x10025e4d
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push ebx
push dword [edi + 0x100]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x10025c2c
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e3e
test byte [eax + 0x1c], 2
je 0x10025e3e
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push 0x54
mov eax, dword [0x100320c8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x10025e3e
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
je 0x10025c3e
mov esi, 0x8007012b
jmp 0x10025e3e
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x10025c9c
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e3e
test byte [eax + 0x1c], 2
je 0x10025e3e
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push 0x55
jmp 0x10025c17
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push ebx
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x10025cea
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e33
test byte [eax + 0x1c], 2
je 0x10025e33
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push VerSetConditionMask
jmp 0x10025e0e
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
je 0x10025cfc
mov esi, 0x8007012b
jmp 0x10025e33
xor esi, esi
push esi
push esi
push esi
push edi
call sub.KERNEL32.dll_SetFilePointer
cmp eax, reloc.ADVAPI32.dll_TraceMessage
jne 0x10025dc4
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e33
test byte [eax + 0x1c], 2
je 0x10025e33
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push reloc.KERNEL32.dll_VerSetConditionMask
jmp 0x10025e0e
push 1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov ecx, edi
call fcn.1000476f
push eax
call sub.KERNEL32.dll_CopyFileW
test eax, eax
je 0x10025a73
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x40000000
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, reloc.ADVAPI32.dll_TraceMessage
jne 0x10025dc4
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e49
test byte [eax + 0x1c], 2
je 0x10025e49
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push reloc.KERNEL32.dll_EnterCriticalSection
jmp 0x10025b71
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0x78
sub eax, 0xffffff80
push eax
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x10025e20
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov esi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10025e33
test byte [eax + 0x1c], 2
je 0x10025e33
call sub.KERNEL32.dll_GetLastError
push eax
push 0x1000c0b0
push LeaveCriticalSection
mov eax, dword [0x100320c8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x10025e33
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
sub esi, 0x78
neg esi
sbb esi, esi
and esi, 0x8007012b
cmp edi, reloc.ADVAPI32.dll_TraceMessage
je 0x10025e3e
push edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x10025e49
push ebx
call fcn.10001485
pop ecx
test esi, esi
jns 0x10025e59
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call sub.KERNEL32.dll_DeleteFileW
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100024c8
leave
ret 8