Function at 0x1030c8a
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 0x1030cda
test byte [eax + 0x1c], 4
je 0x1030cda
cmp byte [eax + 0x19], 5
jb 0x1030cda
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.01009a5d
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x668]
test ecx, ecx
jge 0x1030d7b
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030d48
test byte [eax + 0x1c], 4
je 0x1030d48
cmp byte [eax + 0x19], 2
jb 0x1030d48
push ecx
push 0x10022b4
push 0x90
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov ecx, dword [ebp - 0x668]
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1030d61
movzx eax, cx
mov dword [ebp - 0x668], eax
jmp 0x1030d67
mov dword [ebp - 0x668], ecx
mov esi, dword [ebp - 0x670]
xor eax, eax
mov word [ebp - 0x414], ax
jmp 0x1030f02
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.010105da
mov dword [ebp - 0x668], eax
test eax, eax
je 0x1030e22
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030de9
test byte [eax + 0x1c], 4
je 0x1030de9
cmp byte [eax + 0x19], 2
jb 0x1030de9
push dword [ebp - 0x668]
push 0x10022b4
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009b2b
push eax
push 0xc0007d2f
push 1
push 1
push 2
call fcn.0105dbc9
add esp, 0x14
jmp 0x1030f02
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1030f45
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x668], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030e84
test byte [eax + 0x1c], 4
je 0x1030e84
cmp byte [eax + 0x19], 2
jb 0x1030e84
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.0102d5bc
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009b2b
push eax
push 0xc0007d2f
push 1
push 1
push 2
call fcn.0105dbc9
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1030f02
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030f02
test byte [eax + 0x1c], 4
je 0x1030f02
cmp byte [eax + 0x19], 2
jb 0x1030f02
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.0100a6e9
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009b54
push eax
lea eax, [ebp - 0x414]
push eax
push dword [esi + 0x34]
push 0xc0007d14
push 3
push 1
push 2
call fcn.0105dbc9
add esp, 0x1c
jmp 0x1031134
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0f4
test eax, eax
jne 0x1030fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x66c], eax
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1030f99
test byte [eax + 0x1c], 4
je 0x1030f99
cmp byte [eax + 0x19], 2
jb 0x1030f99
push dword [ebp - 0x66c]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10022b4
push 0x94
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x68c], eax
xor eax, eax
lea ecx, [ebp - 0x68c]
mov word [ebp - 0x688], ax
call fcn.01009b54
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xc0007d4a
push 2
push 1
push 2
call fcn.0105dbc9
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.0104e401
test eax, eax
je 0x103101f
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x103101f
test byte [ecx + 0x1c], 4
je 0x103101f
cmp byte [ecx + 0x19], 2
jb 0x103101f
push eax
push 0x10022b4
push 0x95
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a6bd
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 0x103108c
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031117
test byte [eax + 0x1c], 4
je 0x1031117
cmp byte [eax + 0x19], 2
jb 0x1031117
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.0101480e
jmp 0x1031117
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1078100]
add eax, 0x38
cmp dword [eax], 0xffffffff
jne 0x10310a6
cmp dword [eax + 4], 0xffffffff
je 0x10310ca
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 0x1031117
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031117
test byte [eax + 0x1c], 4
je 0x1031117
cmp byte [eax + 0x19], 2
jb 0x1031117
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.0100a6bd
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x34]
push 0x40007d13
push 2
push 3
push 2
call fcn.0105dbc9
add esp, 0x18
cmp dword [ebp - 0x668], 0
pop edi
pop esi
pop ebx
je 0x103114c
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.0105bb63
leave
ret 4