Function at 0x4807ce
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc4
mov edx, dword [0x549368]
push edi
xor edi, edi
push edi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x54], edi
call fcn.004729f8
call fcn.0046e5c1
mov dword [ebp + 0x68], edi
cmp dword [ebp + 0x58], edi
jbe 0x480a23
push ebx
push esi
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x68]
mov ecx, dword [eax + ecx*4]
mov dword [ebp + 0x48], ecx
call fcn.0047cd9e
xor esi, esi
mov dword [ebp + 0x74], eax
cmp dword [0x5493dc], edi
jbe 0x480869
mov eax, dword [0x5493d4]
mov eax, dword [eax + esi*4]
lea ecx, [eax + 0xa0]
mov eax, dword [ecx]
cmp eax, edi
je 0x480860
xor edx, edx
cmp word [eax], di
sete dl
test dl, dl
jne 0x480860
call fcn.0048ea50
mov ecx, dword [ebp + 0x74]
call fcn.0047cb94
test eax, eax
je 0x480a02
inc esi
cmp esi, dword [0x5493dc]
jb 0x48082b
xor esi, esi
cmp dword [0x549c08], edi
jbe 0x4808be
mov eax, dword [0x549c00]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x168]
cmp byte [eax + 0x28], 0
jne 0x4808b5
cmp dword [eax + 8], 1
jne 0x4808b5
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x1c]
call fcn.004a327a
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x4c], eax
call fcn.0047cb94
lea ecx, [ebp + 0x4c]
test eax, eax
je 0x4809d2
call fcn.0048db07
inc esi
cmp esi, dword [0x549c08]
jb 0x480873
mov ecx, dword [ebp + 0x74]
push 0x1000000
lea edx, [ebp + 0x5c]
call fcn.004a4a93
mov esi, eax
cmp esi, edi
je 0x4809f9
lea ecx, [ebp + 0x38]
xor bl, bl
call fcn.00406edf
lea eax, [ebp + 0x6c]
push eax
mov eax, dword [ebp + 0x5c]
add eax, esi
push eax
lea edx, [ebp + 0x38]
mov ecx, esi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
call fcn.00407578
test eax, eax
je 0x48090b
cmp dword [ebp + 0x6c], edi
je 0x48090b
cmp byte [ebp + 0x44], 5
je 0x48096b
call fcn.0047d75a
push dword [ebp + 0x5c]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 4]
lea ecx, [ebp + 0x28]
call fcn.00406edf
mov eax, dword [0x549408]
mov dword [ebp + 0x6c], eax
mov eax, dword [0x54940c]
mov dword [ebp + 0x70], eax
lea eax, [ebp + 0x6c]
push eax
mov eax, dword [ebp + 0x5c]
add eax, esi
push eax
lea edx, [ebp + 0x28]
mov ecx, esi
call fcn.00407578
test eax, eax
je 0x480958
cmp dword [ebp + 0x6c], edi
je 0x480958
cmp byte [ebp + 0x34], 5
jne 0x480958
mov bl, 1
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x28], 0x4f20b4
call fcn.004067a4
test bl, bl
je 0x4809e1
lea ecx, [ebp - 0x4c]
call fcn.004e676c
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x6c]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 0x6c]
call fcn.004e7a53
mov ecx, eax
call fcn.004908d5
cmp eax, edi
je 0x4809d9
mov ecx, dword [eax + 0x168]
mov edx, dword [ecx + 0x14]
add dword [ebp + 0x60], edx
mov ecx, dword [ecx + 0x18]
mov edx, dword [ebp + 0x74]
adc dword [ebp + 0x64], ecx
lea ecx, [eax + 0x618]
call fcn.0048d9fe
lea ecx, [ebp - 0x4c]
call fcn.004e6791
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x38], 0x4f20b4
call fcn.004067a4
mov dl, 1
mov ecx, esi
call fcn.0046b3e9
jmp 0x480a02
call fcn.0048db07
jmp 0x480a02
lea ecx, [ebp - 0x4c]
call fcn.004e6791
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x38], 0x4f20b4
call fcn.004067a4
mov dl, 1
mov ecx, esi
call fcn.0046b3e9
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp + 0x74]
call fcn.0048db07
lea ecx, [ebp + 0x48]
call fcn.0048db07
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x58]
jb 0x48080d
pop esi
pop ebx
mov eax, dword [ebp + 0x60]
mov dword [0x549358], eax
mov eax, dword [ebp + 0x64]
mov dword [0x54935c], eax
call fcn.0046e5dd
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x58], edi
call fcn.0048e6b4
pop edi
add ebp, 0x78
leave
ret