Function at 0x46d160
Capabilities:
Delete directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cd5e
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x33c], edi
push 0
push 0
lea ecx, [ebp - 0x338]
mov dword [ebp - 4], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
call fcn.0046d6a0
mov dword [ebp - 0x338], eax
push edi
push ecx
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.00410300
lea ecx, [ebp - 0x338]
call fcn.0046c8c0
test eax, eax
jne 0x46d1fb
mov dword [ebp - 0x32c], eax
jmp 0x46d3f0
push 0x100
lea eax, [ebp - 0x112]
push 0
push eax
call fcn.004daa30
xor eax, eax
add esp, 0xc
mov word [ebp - 0x114], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x324]
movups xmmword [ebp - 0x324], xmm0
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.004daa30
movzx eax, byte [ebp - 0x315]
push eax
movzx eax, byte [ebp - 0x316]
push eax
movzx eax, byte [ebp - 0x317]
push eax
movzx eax, byte [ebp - 0x318]
push eax
movzx eax, byte [ebp - 0x319]
push eax
movzx eax, byte [ebp - 0x31a]
push eax
movzx eax, byte [ebp - 0x31b]
push eax
movzx eax, byte [ebp - 0x31c]
push eax
movzx eax, word [ebp - 0x31e]
push eax
movzx eax, word [ebp - 0x320]
push eax
push dword [ebp - 0x324]
lea eax, [ebp - 0x314]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00451f50
lea ecx, [ebp - 0x314]
add esp, 0x40
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d2b7
sub ecx, edx
lea eax, [ebp - 0x314]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.005055f4
add esp, 0x10
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x46d462
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x328]
push str._s_s.tf
push eax
call fcn.0041de00
mov esi, dword [ebp - 0x328]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x330], ecx
cmp ecx, 0xffffffff
je 0x46d3cc
lea edi, [ebp - 0x114]
lea edx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x46d360
push 0
sub edi, edx
mov dword [ebp - 0x328], 0
lea eax, [ebp - 0x328]
sar edi, 1
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d3a9
cmp edi, dword [ebp - 0x328]
jne 0x46d3b7
mov dword [ebp - 0x32c], 1
jmp 0x46d3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x33c]
mov dword [ecx], eax
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46d3d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46d3f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x338]
mov eax, edi
cmp edi, dword [edi]
je 0x46d414
nop dword [eax]
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x46d400
lea ecx, [ebp - 0x338]
call fcn.0046bc50
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46d441
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b4c0
int3