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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51833b
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.0040b420
test al, al
je 0x414a99
lea ecx, [esi + 0x324]
mov dword [ebp - 0x4ac], ecx
call fcn.0040b420
test al, al
jne 0x414a99
lea eax, [ebp - 0x48c]
push eax
lea ecx, [esi + 0x36c]
call fcn.004114a0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x48c]
cmp dword [ecx - 0xc], ebx
jne 0x4146a6
lea edx, [ebp - 0x49c]
push edx
call fcn.00414320
add esp, 4
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48c]
call fcn.00412420
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 0x4146a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4146a9
or edi, 0xffffffff
lea ecx, [ebp - 0x488]
add esi, 0x6d0
push ecx
mov ecx, esi
mov dword [ebp - 0x4b0], esi
call fcn.004113c0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x49c]
push edx
call fcn.00413260
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.0040f910
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 0x414711
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.00490700
mov eax, dword [ebp - 0x48c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004904f0
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.004905d0
push 0x400
lea eax, [ebp - 0x47c]
push ebx
push eax
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
call fcn.004eb200
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x484]
push 0x10
push edx
call fcn.0050de70
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.004113c0
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 0x4147d3
call fcn.0040b380
jmp 0x4147d9
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
jne 0x4147e6
call fcn.0040b2d0
mov esi, eax
jmp 0x4147ee
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 0x414813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jge 0x41487f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x414832
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 0x414856
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 0x414878
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x414a9b
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 0x4148ec
call fcn.0040b2d0
cmp eax, ebx
jge 0x4148e6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x4148c3
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.00406ef0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x48c]
call fcn.00406ef0
xor al, al
jmp 0x414a9b
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.0040b9c0
cmp eax, ebx
jge 0x414949
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0040ce70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0040ce70
jmp 0x4148c3
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.0040dc20
mov edi, dword [ebp - 0x4bc]
mov esi, dword [ebp - 0x4c0]
push edi
push esi
lea ecx, [ebp - 0x498]
call fcn.0040ba30
cmp eax, ebx
jge 0x4149e5
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x4149a0
push esi
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0040ce70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0040ce70
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.00406ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.00406ef0
xor al, al
jmp 0x414a9b
push esi
push esi
lea ecx, [ebp - 0x484]
push edi
push ecx
call fcn.0050dd00
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 0x414a1f
call fcn.0040b2d0
cmp eax, ebx
jl 0x41498f
lea ecx, [ebp - 0x488]
push ecx
mov ecx, dword [ebp - 0x4b0]
call fcn.00412570
mov ecx, dword [ebp - 0x4ac]
lea edx, [ebp - 0x48d]
push edx
mov byte [ebp - 0x48d], 1
call fcn.0040b4e0
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x414a5b
push esi
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0040ce70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0040ce70
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.00406ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.00406ef0
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.004eb16b
mov esp, ebp
pop ebp
ret