Function at 0x4985b6
Capabilities:
Delete file

Disassembly:
mov eax, 0x6d491e
call fcn.006899cc
sub esp, 0x560
push ebx
push esi
xor esi, esi
push edi
push 0x104
cmp dword [ebp + 8], esi
jne 0x498806
lea eax, [ebp - 0x56c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x80
push 4
lea eax, [ebp - 0x56c]
push eax
call fcn.00470c47
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
cmp eax, 0xffffffff
je 0x498872
push eax
call fcn.004984e9
test eax, eax
je 0x4987f8
push esi
push 0xf8
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x14]
call fcn.00470e1f
test eax, eax
jne 0x4987f8
mov edi, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc0]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4987f8
cmp ebx, 0xc
jbe 0x4987f8
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
lea eax, [ebp + 0xb]
mov dword [ebp - 4], esi
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0046bf67
push esi
push edi
push 0xc
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x14]
call fcn.00470e62
mov edi, dword [ebp - 0x40]
test eax, eax
jne 0x4987c2
mov eax, 0x200
cmp word [ebp - 0x60], ax
jne 0x4987c2
push 2
pop eax
cmp word [ebp - 0x5e], ax
jne 0x4987c2
mov eax, dword [ebp - 0x64]
cmp eax, 0x100000
jae 0x4987c2
push esi
sub ebx, eax
add eax, dword [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00470e62
test eax, eax
jne 0x4987c2
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push edi
call fcn.005a226f
push esi
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.0046f6b4
xor eax, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 8
pop ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], ebx
jb 0x498707
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x18]
push edi
push eax
call fcn.0047369e
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], ebx
jb 0x49871c
mov eax, dword [ebp - 0x34]
push 1
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00514e00
test eax, eax
je 0x49875e
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], ebx
jb 0x498737
mov eax, dword [ebp - 0x34]
push 0x7c0bd4
push 1
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00514a3b
test al, al
je 0x49875e
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004988bf
mov dword [ebp - 0x1c], eax
jmp 0x498770
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], ebx
jb 0x498769
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jb 0x4987aa
mov ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x4987a1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x48], esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0044823e
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4987f8
mov eax, dword [ebp - 0x38]
sub eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x4987ef
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
push eax
push edi
call fcn.0068976d
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00470bd9
mov eax, dword [ebp - 0x1c]
jmp 0x498874
lea eax, [ebp - 0x364]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x80
push 4
lea eax, [ebp - 0x364]
push eax
call fcn.00470c47
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x498872
push esi
push dword [ebp + 8]
push eax
call fcn.00498885
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x18]
push eax
call fcn.00470bd9
mov ecx, edi
or ecx, ebx
je 0x498872
push ebx
push edi
sub esp, 0x18
lea eax, [ebp - 0x364]
mov ecx, esp
push eax
mov dword [ecx], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 7
call fcn.004482e2
call fcn.00497bb0
jmp 0x498874
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4