Function at 0x4d3658
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4d3660
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405c50
lea eax, [ebp - 0x170]
mov edx, dword [0x4091bc]
call fcn.00406460
xor eax, eax
push ebp
push 0x4d394a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405868
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4d36ab
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x17c]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00405cc8
mov eax, dword [ebp - 0x17c]
mov edx, 0x4d3960
call fcn.00405bf8
je 0x4d36e0
lea eax, [ebp - 8]
mov edx, 0x4d3960
call fcn.00405a9c
mov ebx, 0x3f
mov dl, 1
mov eax, dword [0x41eb1c]
call fcn.004047c0
mov dword [ebp - 0x174], eax
xor edx, edx
push ebp
push 0x4d38f7
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4d396c
push dword [ebp - 8]
push 0x4d3988
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00405b64
mov eax, dword [ebp - 0x180]
xor edx, edx
call fcn.004cfb88
lea eax, [ebp - 0x184]
mov ecx, 0x4d3988
mov edx, dword [ebp - 8]
call fcn.00405ae8
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x170]
mov edx, ebx
call fcn.0040b614
test eax, eax
jne 0x4d3787
mov eax, dword [ebp - 0x160]
mov edx, eax
and edx, ebx
cmp edx, eax
jne 0x4d3778
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x170]
call fcn.0040b664
test eax, eax
je 0x4d3759
lea eax, [ebp - 0x170]
call fcn.0040b688
mov eax, dword [ebp - 0x174]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 4
test eax, eax
jl 0x4d38de
inc eax
mov dword [ebp - 0x178], eax
xor ebx, ebx
push 0x4d3998
push dword [ebp - 8]
lea ecx, [ebp - 0x18c]
mov edx, ebx
mov eax, dword [ebp - 0x174]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x18c]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00405b64
mov eax, dword [ebp - 0x188]
xor edx, edx
call fcn.004cfb88
lea ecx, [ebp - 0x194]
mov edx, ebx
mov eax, dword [ebp - 0x174]
mov esi, dword [eax]
call dword [esi + 0xc]
mov ecx, dword [ebp - 0x194]
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 8]
call fcn.00405ae8
mov esi, dword [ebp - 0x190]
mov dword [ebp - 0x198], esi
mov eax, dword [ebp - 0x198]
call fcn.00405c60
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 0x174]
mov esi, dword [eax]
call dword [esi + 0xc]
lea ecx, [ebp - 0x19c]
mov edx, ebx
mov eax, dword [ebp - 0x174]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x198], eax
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x4d3877
sub esi, 4
mov esi, dword [esi]
push dword [ebp - 8]
lea eax, [ebp - 0x1a4]
push eax
mov ecx, esi
sub ecx, 4
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405cc8
push dword [ebp - 0x1a4]
push 0x4d39ac
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00405b64
mov esi, dword [ebp - 0x1a0]
mov dword [ebp - 0x198], esi
mov eax, dword [ebp - 0x198]
call fcn.00405c60
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
inc ebx
dec dword [ebp - 0x178]
jne 0x4d37b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d38fe
mov eax, dword [ebp - 0x174]
call fcn.004047f0
ret