Function at 0x436a00
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.00435ec0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x436aaf
push ebx
push 1
mov ecx, edi
call fcn.00435f80
lea esi, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436aa6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436aa6
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x436a81
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
je 0x436aa6
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436a77
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [0x4c0080]
mov dword [esi], ecx
jmp 0x436aa6
mov edx, 0x4cf75c
test edx, edx
jne 0x436a8e
xor eax, eax
jmp 0x436a99
push 0x4cf75c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4cf75c
push eax
mov ecx, esi
call fcn.00404780
inc ebx
cmp ebx, ebp
jl 0x436a20
push 0
mov ecx, edi
call fcn.00435ec0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x436b53
push ebx
push 0
mov ecx, edi
call fcn.00435f80
lea esi, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436b4a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436b4a
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x436b25
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
je 0x436b4a
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436b1b
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [0x4c0080]
mov dword [esi], ecx
jmp 0x436b4a
mov edx, 0x4cf75c
test edx, edx
jne 0x436b32
xor eax, eax
jmp 0x436b3d
push 0x4cf75c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4cf75c
push eax
mov ecx, esi
call fcn.00404780
inc ebx
cmp ebx, ebp
jl 0x436ac4
push 2
mov ecx, edi
call fcn.00435ec0
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], esi
jle 0x436c5e
push esi
push 2
mov ecx, edi
call fcn.00435f80
lea ebx, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436c4d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x436c4d
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x436bdb
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
je 0x436c4d
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436bd1
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [0x4c0080]
mov dword [ebx], ecx
jmp 0x436c4d
mov edx, 0x4cf75c
test edx, edx
jne 0x436be8
xor ebp, ebp
jmp 0x436bf5
push 0x4cf75c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x436c02
cmp ebp, dword [eax - 4]
jle 0x436c15
mov ecx, ebx
call fcn.00404ac0
push ebp
mov ecx, ebx
call fcn.00404720
test eax, eax
je 0x436c4d
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x436c40
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
mov esi, 0x4cf75c
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 0x436b6e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret