Function at 0x519e10
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60807d
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x36c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x37c]
mov esi, edx
lea edx, [esp + 0x18]
xor ebp, ebp
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], ebp
call fcn.00409dd0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x378], ebp
call fcn.00409dd0
mov byte [esp + 0x374], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x374], 2
mov ecx, dword [esp + 0x18]
push 0x5c
push ecx
call fcn.005d37a2
add esp, 8
cmp eax, ebp
je 0x519f11
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x519f11
add eax, 1
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
call fcn.0041a270
lea edi, [esp + 0x28]
mov byte [esp + 0x374], 3
call fcn.0040ab90
mov byte [esp + 0x374], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x519f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xcc], ebp
push ebx
lea edi, [esp + 0xd0]
call fcn.0051acc0
cmp eax, ebp
jge 0x519fe9
mov eax, dword [esp + 0xcc]
cmp eax, ebp
je 0x519f6b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0xd0], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xcc]
cmp eax, ebp
je 0x519f6b
push eax
call esi
mov dword [esp + 0xcc], ebp
lea eax, [ebx - 0x10]
mov byte [esp + 0x374], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x519f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x374], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x519fb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x374], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x519fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x51a5db
push 4
push ebp
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
mov dword [esp + 0x30], edi
mov edx, dword [esp + 0x24]
push ebp
push 0x80
push 3
push ebp
push 3
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51a084
call fcn.0040f010
cmp eax, ebp
jge 0x51a08a
mov eax, dword [esp + 0xcc]
cmp eax, ebp
je 0x51a067
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0xd0], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xcc]
cmp eax, ebp
je 0x51a067
push eax
call esi
mov dword [esp + 0xcc], ebp
lea eax, [ebx - 0x10]
mov byte [esp + 0x374], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x519f83
mov edi, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
push ebp
push 4
push 2
mov eax, edi
lea esi, [esp + 0x68]
mov byte [esp + 0x380], 6
call fcn.0050dcc0
cmp eax, ebp
jge 0x51a11c
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, ebp
je 0x51a0ca
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x51a0ca
call fcn.0040f010
mov esi, eax
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x51a0e8
push eax
call ebx
test eax, eax
jne 0x51a0e8
cmp esi, ebp
jl 0x51a0e8
call fcn.0040f010
cmp edi, ebp
je 0x51a0ef
push edi
call ebx
lea esi, [esp + 0xcc]
call fcn.0051ae00
mov byte [esp + 0x374], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x519f83
push 0x3c
lea ecx, [esp + 0x94]
push ebp
push ecx
call fcn.005da970
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov dword [esp + 0x98], 0x51554432
mov word [esp + 0x9c], 3
mov word [esp + 0x9e], bp
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 0x20]
add esp, 0xc
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 0x24]
push ebp
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0xa4], edx
mov eax, dword [eax + 0x28]
push 0x40
lea edx, [esp + 0x98]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xd8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x51a1a2
call fcn.0040f010
mov edx, dword [esp + 0x60]
cmp edx, 0x30
mov dword [esp + 0x2c], 0x40
jb 0x51a458
mov ecx, dword [esp + 0x5c]
cmp dword [ecx], 0x51505955
jne 0x51a458
cmp word [ecx + 4], 2
jne 0x51a458
mov eax, dword [ecx + 0x2c]
add eax, 0x30
cmp eax, edx
ja 0x51a458
cmp byte [ebx + 0x30], 0
jne 0x51a450
jmp 0x51a1f8
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
cmp eax, edx
jae 0x51a450
movzx esi, byte [ecx + eax + 0xa]
lea edi, [ecx + eax]
movzx ecx, byte [edi + 0xb]
add ecx, esi
cmp byte [edi], 0xd1
lea ecx, [ecx + ecx + 0xc]
jne 0x51a450
add eax, ecx
cmp eax, edx
mov dword [esp + 0x34], eax
ja 0x51a450
push 0x82
lea ecx, [esp + 0x2e2]
push ebp
push ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov word [esp + 0x2e8], bp
call fcn.005da970
movzx edx, byte [edi + 0xa]
lea eax, [edi + 0xc]
mov dword [esp + 0x4c], eax
lea ecx, [edi + edx*2 + 0xc]
movzx edx, byte [edi + 0xa]
mov dword [esp + 0x48], edx
mov al, byte [edi + 0xb]
add esp, 0xc
cmp al, 0x40
movzx eax, al
jb 0x51a279
mov eax, 0x40
push eax
push ecx
lea eax, [esp + 0x2e4]
push eax
call fcn.005d31ba
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
add esp, 0xc
call fcn.0051bd80
cmp eax, ebp
je 0x51a43e
push ebp
lea ecx, [esp + 0x2e0]
push ecx
push esi
push eax
mov eax, ebx
call fcn.00517570
cmp eax, ebp
je 0x51a43e
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x24], ebp
call fcn.00521190
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x51a450
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x40]
mov dword [esp + 0x20], ebp
call fcn.00521240
mov edx, dword [esp + 0x1c]
cmp edx, ebp
je 0x51a450
movzx eax, byte [edi + 0xa]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 8]
push 1
lea esi, [esp + 0x20]
push esi
push edx
movzx edx, byte [edi + 4]
push edx
movzx edx, byte [edi + 3]
push edx
mov edx, dword [edi + 6]
push edx
movzx edx, byte [edi + 0xb]
push edx
lea eax, [edi + eax*2 + 0xc]
push eax
push ecx
mov dword [esp + 0x40], ebp
call fcn.00521330
mov ebx, dword [esp + 0x1c]
cmp ebx, ebp
je 0x51a450
cmp dword [ebx + 8], ebp
jbe 0x51a35b
test byte [ebx + 0xe], 0x80
jne 0x51a35b
cmp eax, 2
jne 0x51a35b
add dword [esp + 0x38], 1
movzx ecx, byte [edi + 3]
mov dl, byte [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x52], eax
mov word [esp + 0x56], ax
mov dword [esp + 0x4e], eax
mov eax, dword [edi + 6]
mov byte [esp + 0x55], cl
mov cl, byte [edi + 0xb]
mov byte [esp + 0x57], cl
mov dword [esp + 0x4c], eax
mov al, byte [edi + 0xa]
movzx cx, cl
mov byte [esp + 0x54], dl
movzx dx, al
add cx, dx
mov edx, dword [esp + 0xcc]
push ebp
add cx, 8
mov byte [esp + 0x5a], al
add cx, cx
lea eax, [esp + 0x8c]
push eax
mov word [esp + 0x52], cx
push 0x10
lea ecx, [esp + 0x54]
push ecx
push edx
mov word [esp + 0x5c], 0x7747
call esi
cmp eax, ebp
jne 0x51a3d9
call fcn.0040f010
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ebp
lea ecx, [esp + 0x88]
push ecx
add eax, eax
push eax
mov eax, dword [esp + 0xd8]
push edx
push eax
call esi
cmp eax, ebp
jne 0x51a401
call fcn.0040f010
movzx eax, byte [edi + 0xb]
push ebp
lea ecx, [esp + 0x84]
push ecx
add eax, eax
push eax
mov eax, dword [esp + 0xd8]
lea edx, [esp + 0x2e8]
push edx
push eax
call esi
cmp eax, ebp
jne 0x51a42c
call fcn.0040f010
mov eax, dword [esp + 0x2c]
mov dword [ebx + 4], eax
movzx ecx, word [esp + 0x4a]
add eax, ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x30], 0
mov eax, dword [esp + 0x34]
je 0x51a1f0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x5c]
call fcn.0050df50
cmp edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x51a472
push edi
call esi
mov dword [esp + 0x30], ebp
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xcc]
call fcn.0051ac60
mov eax, dword [esp + 0x58]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51a4a9
call fcn.0040f010
jmp 0x51a4ac
mov dword [ebx + 0x28], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, str..conv
call fcn.0040aab0
mov eax, dword [eax]
add esp, 8
push 0
push 0x80
push 4
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51a4ea
call fcn.0040f010
jmp 0x51a4f1
test eax, eax
je 0x51a4f1
push eax
call esi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a511
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
xor edi, edi
test eax, eax
je 0x51a52d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x51a52d
call fcn.0040f010
mov edi, eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x51a545
push eax
call esi
test eax, eax
jne 0x51a545
test edi, edi
jl 0x51a545
call fcn.0040f010
mov eax, dword [esp + 0x30]
test eax, eax
je 0x51a550
push eax
call esi
lea esi, [esp + 0xcc]
call fcn.0051ae00
mov byte [esp + 0x374], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x374], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a5ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x374], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51a5d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.005d28b3
add esp, 0x364
ret 4