Function at 0x437cb0
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.00437180
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x437d5f
push ebx
push 1
mov ecx, edi
call fcn.00437240
lea esi, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437d56
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437d56
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x437d31
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
je 0x437d56
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437d27
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [0x4c8080]
mov dword [esi], ecx
jmp 0x437d56
mov edx, 0x4d74cc
test edx, edx
jne 0x437d3e
xor eax, eax
jmp 0x437d49
push 0x4d74cc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d74cc
push eax
mov ecx, esi
call fcn.00405ad0
inc ebx
cmp ebx, ebp
jl 0x437cd0
push 0
mov ecx, edi
call fcn.00437180
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x437e03
push ebx
push 0
mov ecx, edi
call fcn.00437240
lea esi, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437dfa
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437dfa
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x437dd5
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
je 0x437dfa
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437dcb
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [0x4c8080]
mov dword [esi], ecx
jmp 0x437dfa
mov edx, 0x4d74cc
test edx, edx
jne 0x437de2
xor eax, eax
jmp 0x437ded
push 0x4d74cc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d74cc
push eax
mov ecx, esi
call fcn.00405ad0
inc ebx
cmp ebx, ebp
jl 0x437d74
push 2
mov ecx, edi
call fcn.00437180
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], esi
jle 0x437f0e
push esi
push 2
mov ecx, edi
call fcn.00437240
lea ebx, [eax + 0x5c]
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437efd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x437efd
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x437e8b
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
je 0x437efd
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437e81
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [0x4c8080]
mov dword [ebx], ecx
jmp 0x437efd
mov edx, 0x4d74cc
test edx, edx
jne 0x437e98
xor ebp, ebp
jmp 0x437ea5
push 0x4d74cc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x437eb2
cmp ebp, dword [eax - 4]
jle 0x437ec5
mov ecx, ebx
call fcn.00405e10
push ebp
mov ecx, ebx
call fcn.00405a70
test eax, eax
je 0x437efd
lea eax, [ebp + ebp]
lea ecx, [ebp + ebp + 2]
cmp ecx, eax
jb 0x437ef0
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
mov esi, 0x4d74cc
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 0x437e1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret