Function at 0x4cf8b0
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x864e66
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push esi
je 0x4cfd70
mov esi, dword [esp + 0x16c]
cmp esi, ebx
je 0x4cfd70
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4cf911
push 0x33d
push 3
jmp 0x4cfd77
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x178]
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0061eca0
lea eax, [esp + 0x5c]
push eax
push ebp
call fcn.004ce4c0
add esp, 8
test eax, eax
je 0x4cfd4a
push esi
lea ecx, [esp + 0x1c]
call fcn.00617650
push 0x94b27c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], ebx
call fcn.0061b8a0
push 0x92edb8
lea ecx, [esp + 0x1c]
call fcn.00618b00
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004cf760
mov eax, dword [esp + 0x70]
add esp, 4
lea edx, [esp + 0x70]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jle 0x4cfcb9
mov ecx, 0x37
xor eax, eax
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x84]
push 0xe0
push edx
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cfcaa
cmp dword [esp + 0x20], 0xe0
jb 0x4cfd16
lea eax, [esp + 0x84]
push 0xd8
push eax
call fcn.004ce5a0
mov ecx, dword [esp + 0x88]
add esp, 8
cmp ecx, eax
jne 0x4cfd1d
mov eax, dword [esp + 0x178]
cmp eax, ebx
je 0x4cfa7c
cmp dword [esp + 0x84], eax
je 0x4cfa7c
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp ecx, ebx
mov dword [esp + 0x14], 1
jl 0x4cfa52
jg 0x4cfa4c
cmp eax, ebx
jbe 0x4cfa52
mov dword [esp + 0x24], eax
jmp 0x4cfa64
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x28]
push 1
push edx
push eax
push ebp
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4cfc93
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00617440
lea ecx, [esp + 0xbc]
mov byte [esp + 0x164], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00618b00
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.004cfda0
add esp, 8
test eax, eax
je 0x4cfbc2
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
push 0x10
mov dword [esp + 0x48], eax
push ecx
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], eax
call fcn.00671ac0
add esp, 0xc
mov ecx, 0x10
lea edi, [esp + 0xac]
lea esi, [esp + 0x3c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4cfafa
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4cfb63
mov ecx, dword [esp + 0x174]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 1
mov eax, dword [ecx + 4]
push eax
call fcn.0061f330
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp ecx, ebx
jl 0x4cfb39
jg 0x4cfb33
cmp eax, ebx
jbe 0x4cfb39
mov dword [esp + 0x2c], eax
jmp 0x4cfb4b
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x30]
push 1
push edx
push eax
push ebp
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4cfc83
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cfbc2
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp ecx, ebx
mov dword [esp + 0x14], 1
jl 0x4cfb98
jg 0x4cfb92
cmp eax, ebx
jbe 0x4cfb98
mov dword [esp + 0x34], eax
jmp 0x4cfbaa
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x34], eax
lea edx, [esp + 0x38]
push 1
push edx
push eax
push ebp
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4cfc83
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
cmp eax, ebx
jl 0x4cfbf6
jg 0x4cfbda
cmp ecx, ebx
jbe 0x4cfbf6
push 1
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
call fcn.004cef20
add esp, 0x14
test eax, eax
je 0x4cfd35
jmp 0x4cfc1d
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
push ebx
push ecx
push edx
push eax
push ebp
call fcn.004cef20
add esp, 0x14
test eax, eax
je 0x4cfd35
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x4c]
push 0x10
mov dword [esp + 0x58], ecx
push edx
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ecx
call fcn.00671ac0
add esp, 0xc
mov ecx, 0x10
lea edi, [esp + 0xac]
lea esi, [esp + 0x4c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4cfc5e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4cfd26
mov ecx, dword [esp + 0x174]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], 1
mov eax, dword [ecx + 4]
push eax
call fcn.0061f330
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.00617ec0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4cf9a8
jmp 0x4cfcb9
push 0x35e
push 7
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x164], 0xffffffff
call fcn.00617ec0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jne 0x4cfd0f
mov edi, dword [esp + 0x174]
xor esi, esi
cmp dword [edi + 4], ebx
jle 0x4cfd0f
lea eax, [esp + 0x1c]
push esi
push eax
mov ecx, edi
call fcn.00471a10
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
call fcn.00617ec0
mov eax, dword [edi + 4]
inc esi
cmp esi, eax
jl 0x4cfce8
mov eax, dword [esp + 0x14]
pop edi
jmp 0x4cfd81
push 0x363
jmp 0x4cfcaf
push 0x369
push 0xc
jmp 0x4cfcb1
push 0x3be
push 0xd
call fcn.004ce450
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], bl
call fcn.00617ec0
jmp 0x4cfcb9
push ebx
push ebx
call fcn.004ce490
add esp, 8
test eax, eax
jne 0x4cfccd
push 0x34b
push 0xb
call fcn.004ce450
add esp, 8
jmp 0x4cfccd
push 0x32d
push 1
call fcn.004ce450
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x158]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret