Function at 0x458460
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c379d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 8]
sub esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x34], esi
call fcn.00468370
add esp, 0xc
test eax, eax
je 0x4584af
xor al, al
jmp 0x458740
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004242c0
mov edi, eax
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 7
jbe 0x4584cb
mov edi, dword [edi]
call fcn.0040b040
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45875e
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x458527
test edi, 0xffff0000
jne 0x458511
movzx eax, di
lea ecx, [ebp - 0x18]
push eax
call fcn.0040b3a0
jmp 0x458533
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458516
sub ecx, edx
sar ecx, 1
jmp 0x458529
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x18]
call fcn.0040b720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0
call fcn.00426040
add esp, 4
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45856f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040bf40
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.004242c0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 7
jbe 0x4585a1
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x4d81f4
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.0040bf40
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004581a0
lea eax, [ebp - 0x28]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp edi, 0xffffffff
jne 0x4585f8
xor bl, bl
or edi, edi
jmp 0x45871e
mov esi, dword [ebx + 0xc]
add ebx, 8
mov ecx, esi
mov edx, dword [ebx]
sub ecx, edx
cmp ecx, 0x7d000
jbe 0x458617
lea eax, [edx + 0x7d000]
mov dword [ebx + 4], eax
jmp 0x45864e
jae 0x45864e
mov eax, dword [ebx + 8]
sub eax, edx
cmp eax, 0x7d000
jae 0x458634
push ecx
push 0x7d000
mov ecx, ebx
call fcn.00422e30
jmp 0x45864e
mov eax, 0x7d000
sub eax, ecx
push eax
push 0
push dword [ebx + 4]
add esi, eax
call fcn.004883f0
add esp, 0xc
mov dword [ebx + 4], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebx]
sub eax, edx
push eax
mov byte [ebp - 0x29], 0
mov ecx, dword [ecx + 4]
call fcn.00468590
mov esi, eax
add esp, 4
test esi, esi
js 0x4586c3
je 0x4586c7
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x18]
jne 0x4586c3
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x4586a7
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, ebx
call esi
test al, al
jne 0x4586c3
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0xc]
lea ebx, [ecx + 8]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ecx + 4]
push eax
call fcn.00468590
mov esi, eax
add esp, 4
test esi, esi
jns 0x45866e
mov bl, 1
jmp 0x4586ca
mov bl, byte [ebp - 0x29]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
call fcn.004688a0
test edi, edi
je 0x4586e9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
xor edi, edi
test bl, bl
jne 0x4586f1
mov bl, 1
jmp 0x45871e
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.004242c0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
jbe 0x458709
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.0040bf40
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4d81f4
test edi, edi
je 0x45873e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b700
int3