Function at 0x479380
Capabilities:
Delete file

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
push esi
mov edx, dword [esi + 0x4e98]
cmp edx, edi
mov edx, dword [esp + 0x1c]
sete al
push eax
push ecx
push edx
call fcn.004792b0
mov eax, dword [esi + 0xb848]
add esp, 0x10
cmp eax, edi
je 0x47954e
cmp eax, dword [esi + 0x4ea8]
je 0x479409
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4793d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
test byte [esi + 0x5735], 0x40
jne 0x4793ef
mov eax, dword [esi + 0xb848]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0xb848]
push ecx
call fcn.004ad74d
add esp, 4
mov dword [esi + 0xb848], edi
jmp 0x47954e
mov edx, dword [esi + 8]
lea ebp, [esi + 8]
cmp edx, 0xffffffff
je 0x47954e
mov eax, dword [esi + 0x4eb8]
mov ecx, dword [esi + 0x4ebc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x4ec8]
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
je 0x479463
push 2
push edi
push edi
push edx
call fcn.0047e6b0
mov dword [esi + 0x4eb8], eax
mov dword [esi + 0x4ebc], edx
mov eax, dword [esi + 0x4eb8]
mov ecx, edx
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
test byte [esi + 0x5735], 0x80
push ebx
jne 0x47953c
mov ebx, dword [esi + 0x4ebc]
mov edi, dword [esi + 0x4eb8]
mov edx, dword [ebp]
push 0
push ebx
push edi
push edx
call fcn.0047e6b0
add esp, 0x10
cmp eax, edi
jne 0x47953a
cmp edx, ebx
jne 0x47953a
mov dword [esi + 0x5700], edi
mov edi, dword [esi + 0x56e0]
mov dword [esi + 0x5704], ebx
test edi, edi
push esi
push ebp
je 0x479501
push edi
call fcn.004810a0
add esp, 0xc
test eax, eax
jne 0x47953a
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
mov ebx, dword [esi + 0x5700]
add eax, edx
add eax, ecx
mov ecx, dword [edi + 0x20]
lea edx, [eax + ecx + 0x2e]
mov eax, dword [esp + 0x24]
add ebx, edx
mov dword [esi + 0x5700], ebx
mov ecx, dword [esi + 0x5704]
adc ecx, 0
inc eax
mov dword [esi + 0x5704], ecx
mov edi, dword [edi + 0x68]
mov dword [esp + 0x24], eax
jmp 0x4794af
mov eax, dword [esi + 0x56f4]
mov ecx, dword [esi + 0x56f0]
mov edx, dword [esi + 0x5700]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub edx, eax
push ecx
push eax
mov eax, dword [esi + 0x5704]
sbb eax, ecx
push eax
mov eax, dword [esp + 0x40]
push edx
cdq
push edx
push eax
call fcn.00481c00
add esp, 0x28
xor edi, edi
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], 0xffffffff
pop ebx
mov eax, dword [esi + 0x570c]
cmp eax, edi
je 0x479567
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x570c], edi
mov eax, dword [esi + 0x4ea0]
cmp eax, edi
je 0x479580
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x4ea0], edi
mov eax, dword [esi + 0x4ea4]
cmp eax, edi
je 0x479593
push eax
call fcn.004ad74d
add esp, 4
mov eax, dword [esi + 0x4ea8]
mov dword [esi + 0x4ea4], edi
cmp eax, edi
je 0x4795ac
push eax
call fcn.004ad74d
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 0x4ea8], edi
cmp eax, 3
je 0x4795c4
push esi
call fcn.00479130
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret