Function at 0x43d650
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 1
mov dword [esp + 0x18], edi
call fcn.0043cbb0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x43d6ff
push ebx
push 1
mov ecx, edi
call fcn.0043cc70
lea esi, [eax + 0x6c]
mov eax, dword [eax + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d6f6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d6f6
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x43d6d1
mov edx, dword [0x4c2084]
add eax, 0xfffffff4
cmp eax, edx
je 0x43d6f6
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43d6c7
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov ecx, dword [0x4c2080]
mov dword [esi], ecx
jmp 0x43d6f6
mov edx, 0x4d1b48
test edx, edx
jne 0x43d6de
xor eax, eax
jmp 0x43d6e9
push 0x4d1b48
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d1b48
push eax
mov ecx, esi
call fcn.00405750
inc ebx
cmp ebx, ebp
jl 0x43d670
push 0
mov ecx, edi
call fcn.0043cbb0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x43d7a3
push ebx
push 0
mov ecx, edi
call fcn.0043cc70
lea esi, [eax + 0x6c]
mov eax, dword [eax + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d79a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d79a
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x43d775
mov edx, dword [0x4c2084]
add eax, 0xfffffff4
cmp eax, edx
je 0x43d79a
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43d76b
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov ecx, dword [0x4c2080]
mov dword [esi], ecx
jmp 0x43d79a
mov edx, 0x4d1b48
test edx, edx
jne 0x43d782
xor eax, eax
jmp 0x43d78d
push 0x4d1b48
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d1b48
push eax
mov ecx, esi
call fcn.00405750
inc ebx
cmp ebx, ebp
jl 0x43d714
push 2
mov ecx, edi
call fcn.0043cbb0
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], esi
jle 0x43d8ae
push esi
push 2
mov ecx, edi
call fcn.0043cc70
lea ebx, [eax + 0x6c]
mov eax, dword [eax + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d89d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43d89d
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x43d82b
mov edx, dword [0x4c2084]
add eax, 0xfffffff4
cmp eax, edx
je 0x43d89d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43d821
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov ecx, dword [0x4c2080]
mov dword [ebx], ecx
jmp 0x43d89d
mov edx, 0x4d1b48
test edx, edx
jne 0x43d838
xor ebp, ebp
jmp 0x43d845
push 0x4d1b48
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x43d852
cmp ebp, dword [eax - 4]
jle 0x43d865
mov ecx, ebx
call fcn.00405a90
push ebp
mov ecx, ebx
call fcn.004056f0
test eax, eax
je 0x43d89d
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x43d890
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
mov esi, 0x4d1b48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x43d7be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret