Function at 0x43efa0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
test byte [edi + 8], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
jne 0x43f1b3
test byte [edi + 0xc], 1
je 0x43efea
lea eax, [edi + 0x14]
call fcn.0043f5f0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x43effa
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x43f030
cmp esi, 0xffffffff
jne 0x43f03f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43f258
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebx, eax
test ebx, ebx
jne 0x43efd4
jmp 0x43f258
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp esi, 0xffffffff
je 0x43f258
push str.wb3f
push 0x180
lea eax, [edi + 0x21c]
push 0x8301
push eax
mov dword [esp + 0x1c], 5
call fcn.0051219e
add esp, 0xc
push eax
call fcn.00496bb0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x43f1a6
mov dword [esp + 0x20], 0
lea ebx, [edi + 0x14]
test byte [edi + 0xc], 1
je 0x43f09b
push 1
push 0x80100000
mov eax, ebx
call fcn.0043f880
jmp 0x43f0b4
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f0c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0x20], 0
jne 0x43f0f1
cmp esi, 0xffffffff
jne 0x43f100
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43f192
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x43f085
jmp 0x43f192
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp esi, 0xffffffff
je 0x43f192
call fcn.0043ed50
mov ecx, dword [esp + 0x18]
movzx edx, al
xor eax, eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
sete al
push eax
push ecx
push esi
call fcn.0043f920
mov dword [esp + 0xc], eax
test eax, eax
jne 0x43f186
push 0x15
push 0x24
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
lea ebx, [edi + 0x404]
call dword [0x66b05c]
test eax, eax
je 0x43f14f
xor ecx, ecx
mov word [ebx], cx
jmp 0x43f173
mov edx, dword [esp + 0x28]
shr edx, 1
xor eax, eax
mov word [esp + edx*2 + 0x2c], ax
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.00501eb0
add esp, 0xc
or dword [edi + 0xc], 2
mov eax, dword [esp + 0x14]
or dword [edi + 8], 1
mov dword [edi + 0x10], eax
mov dword [esp + 0xc], 0
cmp esi, 0xffffffff
je 0x43f192
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00496820
add esp, 4
cmp dword [esp + 0xc], 0
je 0x43f1b3
lea eax, [edi + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [edi + 8], 2
jne 0x43f258
cmp dword [esp + 0xc], 0
jne 0x43f258
cmp dword [esp + 0x1c], 0
je 0x43f1e8
mov eax, 0x1779
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0xc], 0x15e
xor ebx, ebx
test byte [edi + 0xc], 1
lea esi, [edi + 0x14]
push 0x80
je 0x43f213
mov eax, esi
call fcn.0043f6d0
mov eax, esi
call fcn.0043f7b0
movzx esi, al
jmp 0x43f223
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test ebx, ebx
jne 0x43f242
test esi, esi
jne 0x43f24c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43f258
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebx, eax
test ebx, ebx
jne 0x43f1f2
jmp 0x43f258
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
je 0x43f258
or dword [edi + 8], 2
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fdb4a
mov esp, ebp
pop ebp
ret 4