Function at 0x1018379
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x103ff58]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edx, edx
mov dword [ebp - 4], eax
mov word [ebp - 0x20c], dx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x104163c
push esi
mov dword [ebp - 0x66c], edx
mov dword [ebp - 0x668], edx
call edi
push 0x104
push dword [0x10415e8]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x414]
push eax
call fcn.01036052
test eax, eax
jne 0x1018444
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov dword [ebp - 0x668], eax
pop eax
call fcn.01032130
mov esi, esp
test esi, esi
je 0x1018424
push dword [ebp - 0x668]
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
lea eax, [ebp - 0x414]
push eax
push 0xc0007d2e
push 2
push 1
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
jmp 0x1018623
lea eax, [ebp - 0x66c]
push eax
mov eax, dword [ebx + 0x158]
push dword [eax + 0xf8]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x1018472
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x668], eax
jmp 0x1018623
push dword [ebp - 0x66c]
lea eax, [ebp - 0x20c]
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.010283dd
test eax, eax
je 0x10185e0
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1018504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov dword [ebp - 0x668], eax
pop eax
call fcn.01032130
mov esi, esp
test esi, esi
je 0x10184de
push dword [ebp - 0x668]
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
push 0xc0007d2f
push 1
push 1
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1018623
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01017f9d
test eax, eax
jne 0x101853c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010282f3
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xc0007d4a
push 2
push 1
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
mov eax, dword [ebx + 0x158]
push dword [eax + 0xf8]
push 0
push 0x40
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.010298e6
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x670], eax
je 0x10185be
push esi
call edi
cmp dword [0x1041600], 0xffffffff
jne 0x101858b
cmp dword [0x1041604], 0xffffffff
je 0x10185ab
mov edx, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x648]
xor eax, eax
xor edi, edi
or eax, edx
or ecx, edi
add dword [0x1041600], eax
adc dword [0x1041604], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 0x34]
push 0x40007d13
push 2
push 3
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
jmp 0x1018662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov dword [ebp - 0x668], eax
pop eax
call fcn.01032130
mov esi, esp
test esi, esi
je 0x101860f
push dword [ebp - 0x668]
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
push 0xc0007d2f
push 1
push 1
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010282f3
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 0x34]
push 0xc0007d14
push 3
push 1
push 2
call sub.FXSEVENT.dll_FaxLog
add esp, 0x1c
cmp dword [ebp - 0x668], 0
je 0x1018662
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x66c], 0
je 0x1018677
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp dword [ebp - 0x668], eax
sete al
lea esp, [ebp - 0x67c]
mov ecx, dword [ebp - 4]
call fcn.01031d91
pop edi
pop esi
pop ebx
leave
ret 4