Function at 0x4142f0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51813b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x2dc]
call fcn.0040b440
test al, al
je 0x4147a9
lea ecx, [esi + 0x324]
mov dword [ebp - 0x4ac], ecx
call fcn.0040b440
test al, al
jne 0x4147a9
lea eax, [ebp - 0x48c]
push eax
lea ecx, [esi + 0x36c]
call fcn.004111c0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x48c]
cmp dword [ecx - 0xc], ebx
jne 0x4143b6
lea edx, [ebp - 0x49c]
push edx
call fcn.00414040
add esp, 4
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48c]
call fcn.00412140
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4143b9
or edi, 0xffffffff
lea ecx, [ebp - 0x488]
add esi, 0x6d0
push ecx
mov ecx, esi
mov dword [ebp - 0x4b0], esi
call fcn.004110e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x49c]
push edx
call fcn.00412f80
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x488]
call fcn.0040f630
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414421
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x7c]
push edx
call fcn.00490340
mov eax, dword [ebp - 0x48c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00490130
xor eax, eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00490210
push 0x400
lea eax, [ebp - 0x47c]
push ebx
push eax
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
call fcn.004eafd0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x484]
push 0x10
push edx
call fcn.0050dc70
add esp, 0x30
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x494], ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x49c]
push eax
mov ecx, esi
call fcn.004110e0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x494]
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
cmp ecx, ebx
je 0x4144e3
call fcn.0040b3a0
jmp 0x4144e9
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
jne 0x4144f6
call fcn.0040b2f0
mov esi, eax
jmp 0x4144fe
mov dword [ebp - 0x498], eax
xor esi, esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414523
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jge 0x41458f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x414542
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x48c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x414588
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4147ab
mov edx, dword [ebp - 0x498]
lea ecx, [ebp - 0x49c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x4a0], esi
cmp esi, edi
jne 0x4145fc
call fcn.0040b2f0
cmp eax, ebx
jge 0x4145f6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x4145d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.004064c0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x48c]
call fcn.004064c0
xor al, al
jmp 0x4147ab
mov esi, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x4a4], ebx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x488]
push ebx
push ebx
push 0x80
push 2
push 2
push 0x40000000
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040b820
cmp eax, ebx
jge 0x414659
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044f630
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044f630
jmp 0x4145d3
mov dword [ebp - 0x4c0], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b4], ebx
mov byte [ebp - 4], 0x10
push edi
push esi
lea ecx, [ebp - 0x4c0]
call fcn.0040d960
mov edi, dword [ebp - 0x4bc]
mov esi, dword [ebp - 0x4c0]
push edi
push esi
lea ecx, [ebp - 0x498]
call fcn.0040b890
cmp eax, ebx
jge 0x4146f5
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x4146b0
push esi
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044f630
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.004064c0
xor al, al
jmp 0x4147ab
push esi
push esi
lea ecx, [ebp - 0x484]
push edi
push ecx
call fcn.0050db00
mov eax, dword [ebp - 0x4a8]
add esp, 0x10
push ebx
lea edx, [ebp - 0x49c]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x41472f
call fcn.0040b2f0
cmp eax, ebx
jl 0x41469f
lea ecx, [ebp - 0x488]
push ecx
mov ecx, dword [ebp - 0x4b0]
call fcn.00412290
mov ecx, dword [ebp - 0x4ac]
lea edx, [ebp - 0x48d]
push edx
mov byte [ebp - 0x48d], 1
call fcn.0040b500
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x41476b
push esi
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044f630
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044f630
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.004064c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eaf3b
mov esp, ebp
pop ebp
ret