Function at 0x6430d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x6cd05c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [eax], 0
lea eax, [esi + 0x10]
push edi
mov edi, dword [eax]
mov dword [esp + 0x24], eax
test edi, edi
je 0x643150
mov eax, dword [edi]
mov ecx, dword [eax + 8]
cmp eax, vtable.OutFileStream.0
jne 0x643525
add dword [edi + 4], 0xffffffff
jne 0x643149
mov dword [edi], vtable.OutFileStream.0
mov eax, dword [edi + 8]
test eax, eax
je 0x64313e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x64313e
mov dword [edi + 8], 0
push 0xc
push edi
call fcn.005842fb
add esp, 8
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
xorps xmm0, xmm0
push 3
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x64350f
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
mov ax, word [esp + 0x10]
mov dword [esp + 0x54], 0
test ax, ax
jne 0x6431b6
xor ecx, ecx
mov eax, 9
cmp word [0x6a0674], cx
cmove eax, ecx
lea ecx, [esp + 0x44]
push eax
push 0x6a0674
call fcn.00404770
jmp 0x6431e6
cmp ax, 8
je 0x6431d9
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.0040e570
lea edi, [esi + 0x38]
lea eax, [esp + 0x44]
cmp edi, eax
je 0x6431fd
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00404b90
cmp dword [esi + 0x18], 0
je 0x643250
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x44]
cmp dword [esp + 0x58], 8
cmovae ecx, dword [esp + 0x44]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jns 0x64324d
mov ecx, dword [esp + 0x58]
cmp ecx, 8
jb 0x643235
inc ecx
push ecx
push dword [esp + 0x48]
call fcn.00404ab0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 0x10
lea edi, [esi + 0x38]
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x643264
inc eax
push eax
push dword [esp + 0x48]
call fcn.00404ab0
cmp dword [ebp + 0x14], 0
je 0x643282
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
xorps xmm0, xmm0
push 9
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x64350f
mov ax, word [esp + 0x10]
test ax, ax
jne 0x6432bb
mov dword [esi + 0x70], 0
mov byte [esi + 0x75], al
jmp 0x6432e7
cmp ax, 0x13
je 0x6432dc
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], eax
mov byte [esi + 0x75], 1
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
xorps xmm0, xmm0
push 0xc
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x64350f
movzx eax, word [esp + 0x10]
mov byte [esi + 0x76], 0
test eax, eax
je 0x64332e
cmp eax, 0x40
jne 0x6432c1
mov eax, dword [esp + 0x18]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x6c], eax
mov byte [esi + 0x76], 1
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
xorps xmm0, xmm0
push 7
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x64350f
cmp word [esp + 0x10], 0
je 0x643362
lea ecx, [esp + 0x10]
call fcn.006437c0
push 1
push ecx
push 0x6a59fc
mov ecx, edi
call fcn.0040e640
cmp eax, 0xffffffff
je 0x6433ad
push eax
push ecx
lea eax, [esp + 0x7c]
mov ecx, edi
push eax
call fcn.0040e4c0
push eax
lea edx, [esi + 0x20]
lea ecx, [esp + 0x60]
call fcn.0040e7f0
add esp, 4
mov ecx, eax
call fcn.0040e220
lea ecx, [esp + 0x5c]
call fcn.00404320
lea ecx, [esp + 0x74]
call fcn.00404320
mov edx, dword [ebp + 0xc]
lea eax, [esi + 0x74]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00643830
add esp, 4
test eax, eax
js 0x64350f
push edi
lea edx, [esi + 0x20]
lea ecx, [esp + 0x30]
call fcn.0040e840
lea ecx, [esi + 0x50]
add esp, 4
lea eax, [esp + 0x2c]
cmp ecx, eax
je 0x6433ec
push 0xffffffffffffffff
push 0
push eax
call fcn.00404b90
cmp byte [esi + 0x74], 0
je 0x643400
lea ecx, [esp + 0x2c]
call fcn.0040e220
jmp 0x643502
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push 0
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0058f548
add esp, 8
cmp eax, 0xffffffff
je 0x64346c
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push 0
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x64346c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x643504
movzx esi, si
or esi, 0x80070000
jmp 0x643504
push 0xc
call fcn.0044e1f1
mov edi, eax
add esp, 4
test edi, edi
je 0x643492
mov dword [edi + 4], 0
mov dword [edi], vtable.OutFileStream.0
mov dword [edi + 8], 0
jmp 0x643494
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
test edi, edi
je 0x6434af
mov eax, dword [edi]
cmp eax, vtable.OutFileStream.0
jne 0x64352d
inc dword [edi + 4]
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.006442a0
test al, al
jne 0x6434e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x6434d6
movzx esi, si
or esi, 0x80070000
lea ecx, [esp + 0x20]
call fcn.0040e430
jmp 0x643504
mov ecx, dword [esp + 0x24]
push edi
call fcn.0040e5c0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [eax], edi
call fcn.0040e430
xor esi, esi
lea ecx, [esp + 0x2c]
call fcn.00404320
mov eax, esi
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret 0x10
push edi
call ecx
jmp 0x643149
push edi
call dword [eax + 4]
jmp 0x6434af