Function at 0x103087e
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x670], eax
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x10308ce
test byte [eax + 0x1c], 4
je 0x10308ce
cmp byte [eax + 0x19], 5
jb 0x10308ce
push 0x10022b4
push 0x8f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov edi, 0x1078040
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1078100]
push dword [eax + 0x30]
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010676d2
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x668]
test ecx, ecx
jge 0x103096f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x103093c
test byte [eax + 0x1c], 4
je 0x103093c
cmp byte [eax + 0x19], 2
jb 0x103093c
push ecx
push 0x10022b4
push 0x90
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov ecx, dword [ebp - 0x668]
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1030955
movzx eax, cx
mov dword [ebp - 0x668], eax
jmp 0x103095b
mov dword [ebp - 0x668], ecx
mov esi, dword [ebp - 0x670]
xor eax, eax
mov word [ebp - 0x414], ax
jmp 0x1030af6
mov ecx, dword [0x1077e1c]
lea eax, [ebp - 0x414]
push eax
push esi
mov esi, dword [ebp - 0x670]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [esi + 0x15c]
push 1
push dword [eax + 0xf8]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.01010543
mov dword [ebp - 0x668], eax
test eax, eax
je 0x1030a16
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10309dd
test byte [eax + 0x1c], 4
je 0x10309dd
cmp byte [eax + 0x19], 2
jb 0x10309dd
push dword [ebp - 0x668]
push 0x10022b4
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009ad5
push eax
push 0xc0007d2f
push 1
push 1
push 2
call fcn.0105d809
add esp, 0x14
jmp 0x1030af6
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1030b39
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x668], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030a78
test byte [eax + 0x1c], 4
je 0x1030a78
cmp byte [eax + 0x19], 2
jb 0x1030a78
push dword [ebp - 0x668]
lea ecx, [ebp - 0x20c]
push ecx
push dword [esi + 0x34]
push 0x10022b4
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102d1b0
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009ad5
push eax
push 0xc0007d2f
push 1
push 1
push 2
call fcn.0105d809
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1030af6
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030af6
test byte [eax + 0x1c], 4
je 0x1030af6
cmp byte [eax + 0x19], 2
jb 0x1030af6
call edi
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x93
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009afe
push eax
lea eax, [ebp - 0x414]
push eax
push dword [esi + 0x34]
push 0xc0007d14
push 3
push 1
push 2
call fcn.0105d809
add esp, 0x1c
jmp 0x1030d28
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102dce8
test eax, eax
jne 0x1030bc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x66c], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030b8d
test byte [eax + 0x1c], 4
je 0x1030b8d
cmp byte [eax + 0x19], 2
jb 0x1030b8d
push dword [ebp - 0x66c]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10022b4
push 0x94
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009afe
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xc0007d4a
push 2
push 1
push 2
call fcn.0105d809
add esp, 0x18
mov eax, dword [esi + 0x15c]
push dword [eax + 0xf8]
push 0
push 0x40
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0104df3d
test eax, eax
je 0x1030c13
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1030c13
test byte [ecx + 0x1c], 4
je 0x1030c13
cmp byte [ecx + 0x19], 2
jb 0x1030c13
push eax
push 0x10022b4
push 0x95
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a667
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
jne 0x1030c80
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030d0b
test byte [eax + 0x1c], 4
je 0x1030d0b
cmp byte [eax + 0x19], 2
jb 0x1030d0b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x96
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01014666
jmp 0x1030d0b
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1078100]
add eax, 0x38
cmp dword [eax], 0xffffffff
jne 0x1030c9a
cmp dword [eax + 4], 0xffffffff
je 0x1030cbe
mov esi, dword [ebp - 0x644]
mov edx, dword [ebp - 0x648]
xor ecx, ecx
xor ebx, ebx
or ecx, esi
mov esi, dword [ebp - 0x670]
or edx, ebx
add dword [eax], ecx
mov ebx, 0x1075004
adc dword [eax + 4], edx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1030d0b
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030d0b
test byte [eax + 0x1c], 4
je 0x1030d0b
cmp byte [eax + 0x19], 2
jb 0x1030d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x97
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a667
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x34]
push 0x40007d13
push 2
push 3
push 2
call fcn.0105d809
add esp, 0x18
cmp dword [ebp - 0x668], 0
pop edi
pop esi
pop ebx
je 0x1030d40
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x668], eax
sete al
xor ecx, ebp
call fcn.0105b7af
leave
ret 4