Function at 0x4b02c9
Capabilities:
Delete file

Disassembly:
mov eax, 0x4c2b35
call fcn.004bf97c
sub esp, 0x268
mov eax, dword [ebp + 8]
call fcn.0048c48b
test eax, eax
je 0x4b05b5
push ebx
push esi
push edi
push dword [ebp + 8]
lea edi, [ebp - 0x1c]
call fcn.00402faf
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x1c]
push ebx
push dword [0x4e63c0]
call dword [sym.imp.MSVCRT.dll__mbscmp]
test eax, eax
pop ecx
pop ecx
je 0x4b033a
or eax, 0xffffffff
xor edi, edi
mov ecx, 0x4e63a8
call fcn.004b2840
lea edi, [ebp - 0x1c]
mov eax, 0x4e63c0
mov dword [0x4e63b8], esi
mov dword [0x4e63bc], esi
call fcn.0040301a
mov eax, dword [0x4e63bc]
mov edx, dword [ebp + 0x10]
cmp eax, edx
mov ecx, dword [0x4e63b8]
ja 0x4b0380
jb 0x4b0353
cmp ecx, dword [ebp + 0xc]
jae 0x4b0380
mov esi, dword [ebp + 0xc]
sub esi, ecx
sbb edx, eax
xor edi, edi
cmp edx, edi
jb 0x4b0380
ja 0x4b0367
cmp esi, dword [ebp + 0x14]
jbe 0x4b0380
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x4b0378
push eax
call fcn.00401377
xor eax, eax
inc eax
jmp 0x4b05b2
mov edx, dword [0x4e63ac]
and dword [ebp - 0x10], 0
test edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], edx
jle 0x4b04c5
mov eax, dword [ebp - 0x10]
mov ecx, 0x4e63a8
call fcn.004b2480
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.00402f86
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
mov byte [ebp - 0x30], 0x5c
mov byte [ebp - 0x134], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x274]
call fcn.004079d4
test eax, eax
mov esi, 0x4e63a8
je 0x4b041d
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.004b2480
lea ecx, [ebp - 0x274]
mov ebx, eax
call fcn.004aeccf
cmp eax, dword [ebx + 0x10]
jne 0x4b041d
cmp edx, dword [ebx + 0x14]
jne 0x4b041d
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.004b2480
mov ecx, eax
add ecx, 4
lea eax, [ebp - 0x274]
call fcn.004aecf1
jmp 0x4b0485
push str..tmp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004031be
push str..xml
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004031be
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
call edi
mov ebx, dword [ebp - 0x24]
push ebx
call edi
push dword [ebp - 0x10]
mov eax, esi
call fcn.004aef5c
dec dword [ebp - 0x14]
dec dword [ebp - 0x10]
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x4b0471
push eax
call fcn.00401377
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b0485
push eax
call fcn.00401377
lea eax, [ebp - 0x274]
call fcn.00407ab2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b04a8
push eax
call fcn.00401377
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x4b039b
mov eax, dword [0x4e63bc]
mov ecx, dword [0x4e63b8]
mov ebx, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
ja 0x4b04f0
jb 0x4b04d1
cmp ecx, dword [ebp + 0xc]
jae 0x4b04f0
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov ecx, dword [ebp + 0x10]
sbb ecx, eax
xor eax, eax
cmp ecx, eax
jb 0x4b04f0
ja 0x4b0367
cmp edx, dword [ebp + 0x14]
ja 0x4b0367
mov eax, 0x4e63a8
call fcn.004aef85
mov eax, dword [0x4e63ac]
mov ecx, dword [ebp + 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
lea ebx, [ecx + eax]
mov eax, dword [0x4e63b8]
mov ecx, dword [0x4e63bc]
xor edi, edi
mov esi, eax
add esi, ebx
mov edx, ecx
adc edx, edi
cmp edx, dword [ebp + 0x10]
jb 0x4b0582
jbe 0x4b057d
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jge 0x4b0582
mov esi, 0x4e63a8
mov eax, edx
mov ecx, esi
call fcn.004b2480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4b055d
push dword [ebp - 0x10]
mov eax, esi
call fcn.004aef5c
dec dword [ebp - 0x14]
dec dword [ebp - 0x10]
mov eax, dword [0x4e63b8]
inc dword [ebp - 0x10]
mov ecx, dword [0x4e63bc]
mov esi, eax
push 0
add esi, ebx
mov edx, ecx
pop edi
adc edx, edi
cmp edx, dword [ebp + 0x10]
ja 0x4b052b
jb 0x4b0582
cmp esi, dword [ebp + 0xc]
ja 0x4b052b
push 0
add eax, ebx
pop edx
adc ecx, edx
cmp ecx, dword [ebp + 0x10]
ja 0x4b059a
jb 0x4b0595
cmp eax, dword [ebp + 0xc]
jae 0x4b059a
xor esi, esi
inc esi
jmp 0x4b059c
xor esi, esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b05b0
push eax
call fcn.00401377
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret