Function at 0x4a6a68
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x47
push 0
push 0
dec ecx
jne 0x4a6a70
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404d80
xor eax, eax
push ebp
push 0x4a753e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b3af8], 0
je 0x4a74fb
xor edx, edx
push ebp
push 0x4a74de
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4a74cd
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x416de4]
call fcn.00403acc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x416de4]
call fcn.00403acc
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x416de4]
call fcn.00403acc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004095ec
cmp al, 1
jne 0x4a748d
mov eax, dword [0x4a754c]
mov dword [ebp - 0xc2], eax
mov eax, dword [0x4a7550]
mov dword [ebp - 0xbe], eax
mov word [ebp - 0xba], 0x101
mov word [ebp - 0xb8], 0
xor eax, eax
mov dword [ebp - 0xb6], eax
lea eax, [ebp - 0x18]
mov edx, 0x4a755c
call fcn.00404968
mov bl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041ba78
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4a6b60
cmp eax, 0x86
jbe 0x4a748d
jmp 0x4a6b66
jle 0x4a748d
lea edx, [ebp - 0xb2]
mov ecx, 0x86
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
sub eax, 0x86
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1cc]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1cc]
lea edx, [ebp - 0x1c8]
call fcn.00408ce4
mov eax, dword [ebp - 0x1c8]
call fcn.00404b90
cmp eax, 8
jne 0x4a748d
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1d4]
mov ecx, 2
mov edx, 1
call fcn.00404df0
mov eax, dword [ebp - 0x1d0]
mov edx, 0x4a7568
call fcn.00408bb0
cmp al, 1
jne 0x4a6d9c
push dword [0x4b3af8]
push 0x4a7574
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1dc]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1dc]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x1d8]
push 0x4a7590
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a7574
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1e4]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1e4]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x1e0]
push 0x4a75a0
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a75b0
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1ec]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1ec]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x1e8]
push 0x4a75cc
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a75b0
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x1f4]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1f4]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x1f0]
push 0x4a75a0
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404c50
lea eax, [ebp - 0x18]
mov edx, 0x4a755c
call fcn.00404968
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1fc]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x1fc]
mov ecx, 6
mov edx, 3
call fcn.00404df0
mov ecx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404bdc
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x204]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x204]
mov ecx, 2
mov edx, 1
call fcn.00404df0
mov eax, dword [ebp - 0x200]
mov edx, 0x4a75dc
call fcn.00408bb0
cmp al, 1
jne 0x4a6f78
push dword [0x4b3af8]
push 0x4a75e8
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x20c]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x208]
push 0x4a7590
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a75e8
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x214]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x210]
push 0x4a75a0
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a7604
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x21c]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x218]
push 0x4a75cc
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404c50
push dword [0x4b3af8]
push 0x4a7604
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x224]
mov ecx, 6
mov edx, 3
call fcn.00404df0
push dword [ebp - 0x220]
push 0x4a75a0
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404c50
lea eax, [ebp - 0x18]
mov edx, 0x4a7620
call fcn.00404968
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
mov eax, dword [ebp - 0x22c]
mov ecx, 6
mov edx, 3
call fcn.00404df0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404bdc
lea ecx, [ebp - 0xb2]
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004a7698
test eax, eax
jne 0x4a748d
xor eax, eax
mov dword [ebp - 0x127], eax
mov eax, dword [ebp - 0x10]
call fcn.0041ba28
mov eax, dword [ebp - 0x28]
call fcn.004095ec
cmp al, 1
jne 0x4a6fd5
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0041ba78
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041b2c8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x127], eax
push 0
push 0x86
mov eax, dword [ebp - 8]
call fcn.0041b2c8
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0041b544
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0041b9a4
mov byte [ebp - 0x1c2], 0
mov word [ebp - 0x1c1], 1
xor edx, edx
mov eax, dword [ebp - 0xaa]
call fcn.004903bc
mov dword [ebp - 0x1bf], eax
xor edx, edx
mov eax, dword [ebp - 0xaa]
call fcn.00490298
mov dword [ebp - 0x1bb], eax
lea eax, [ebp - 0x1b7]
xor ecx, ecx
mov edx, 0x40
call fcn.00403444
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x1b7]
mov ecx, 0x40
call fcn.004099c0
lea eax, [ebp - 0x177]
xor ecx, ecx
mov edx, 0x50
call fcn.00403444
lea eax, [ebp - 0x177]
mov ecx, 0x50
mov edx, dword [ebp - 0x28]
call fcn.00409a18
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x123], eax
lea eax, [ebp - 0x11f]
xor ecx, ecx
mov edx, 9
call fcn.00403444
lea eax, [ebp - 0x11f]
mov ecx, 9
mov edx, dword [ebp - 0x1c]
call fcn.00409a18
push esi
mov esi, 0x4a7624
lea edi, [ebp - 0x116]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov byte [ebp - 0xc3], 0
mov eax, dword [0x4ae984]
mov eax, dword [eax]
call fcn.0046a820
xor edi, edi
mov eax, dword [ebp - 0xc]
call fcn.0041ba28
mov eax, dword [ebp - 0x20]
call fcn.004095ec
cmp al, 1
jne 0x4a7107
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0041ba78
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov edi, eax
xor ebx, ebx
cmp edi, 0x10
jg 0x4a7117
mov word [ebp - 0xb8], 0
jmp 0x4a7138
sub edi, 0x10
mov dword [ebp - 0x230], edi
fild dword [ebp - 0x230]
fdiv dword [0x4a7678]
call fcn.0040320c
mov word [ebp - 0xb8], ax
movzx eax, word [ebp - 0xb8]
shl eax, 8
add eax, 0x10
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041b2c8
lea edx, [ebp - 0x1c2]
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
inc word [ebp - 0xb8]
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041b2c8
lea edx, [ebp - 0xc2]
mov ecx, 0x10
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0041b9a4
cmp bl, 1
jne 0x4a71e8
push 1
push dword [0x4b3ae0]
push 0x4a7684
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x3f]
mov ecx, 9
call fcn.00404b40
push dword [ebp - 0x238]
push 0x4a7690
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.00404c50
mov edx, dword [ebp - 0x234]
mov ecx, dword [0x4b3af8]
mov eax, esi
call fcn.004a789c
mov eax, dword [ebp - 0x24]
call fcn.004095ec
cmp al, 1
jne 0x4a728c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0041ba78
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4a7218
cmp eax, 0x110
jb 0x4a728c
jmp 0x4a721a
jl 0x4a728c
push 0
push 0x10
mov eax, dword [ebp - 0xc]
call fcn.0041b2c8
lea edx, [ebp - 0x1c2]
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xaa]
call fcn.004903bc
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1bf]
cdq
cmp edx, dword [esp + 4]
jne 0x4a7260
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4a728c
jmp 0x4a7264
pop edx
pop eax
jge 0x4a728c
mov eax, dword [ebp - 0x24]
call fcn.00404d90
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x2c]
call fcn.00404d90
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x4ae984]
mov eax, dword [eax]
call fcn.0046a820
xor eax, eax
mov dword [ebp - 0x127], eax
mov eax, dword [ebp - 0x10]
call fcn.0041ba28
mov eax, dword [ebp - 0x2c]
call fcn.004095ec
cmp al, 1
jne 0x4a72d1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0041ba78
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041b2c8
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x127], eax
push 0
push 0x86
mov eax, dword [ebp - 8]
call fcn.0041b2c8
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0041b544
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0041b9a4
mov byte [ebp - 0x1c2], 0
mov word [ebp - 0x1c1], 1
xor edx, edx
mov eax, dword [ebp - 0xaa]
call fcn.004903bc
mov dword [ebp - 0x1bf], eax
xor edx, edx
mov eax, dword [ebp - 0xaa]
call fcn.00490298
mov dword [ebp - 0x1bb], eax
lea eax, [ebp - 0x1b7]
xor ecx, ecx
mov edx, 0x40
call fcn.00403444
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x1b7]
mov ecx, 0x40
call fcn.004099c0
lea eax, [ebp - 0x177]
xor ecx, ecx
mov edx, 0x50
call fcn.00403444
lea eax, [ebp - 0x177]
mov ecx, 0x50
mov edx, dword [ebp - 0x2c]
call fcn.00409a18
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x123], eax
lea eax, [ebp - 0x11f]
xor ecx, ecx
mov edx, 9
call fcn.00403444
lea eax, [ebp - 0x11f]
mov ecx, 9
mov edx, dword [ebp - 0x1c]
call fcn.00409a18
mov esi, 0x4a7624
lea edi, [ebp - 0x116]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0xc3], 0
mov eax, dword [0x4ae984]
mov eax, dword [eax]
call fcn.0046a820
xor edi, edi
mov eax, dword [ebp - 0xc]
call fcn.0041ba28
mov eax, dword [ebp - 0x24]
call fcn.004095ec
cmp al, 1
jne 0x4a73ff
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0041ba78
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov edi, eax
cmp edi, 0x10
jg 0x4a740f
mov word [ebp - 0xb8], 0
jmp 0x4a7430
sub edi, 0x10
mov dword [ebp - 0x230], edi
fild dword [ebp - 0x230]
fdiv dword [0x4a7678]
call fcn.0040320c
mov word [ebp - 0xb8], ax
movzx eax, word [ebp - 0xb8]
shl eax, 8
add eax, 0x10
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041b2c8
lea edx, [ebp - 0x1c2]
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
inc word [ebp - 0xb8]
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041b2c8
lea edx, [ebp - 0xc2]
mov ecx, 0x10
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0041b9a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a74d4
mov eax, dword [ebp - 8]
call fcn.00403afc
mov eax, dword [ebp - 0xc]
call fcn.00403afc
mov eax, dword [ebp - 0x10]
call fcn.00403afc
mov eax, dword [0x4ae984]
mov eax, dword [eax]
call fcn.0046a820
mov eax, dword [ebp - 4]
call fcn.00404d90
push eax
call sub.kernel32.dll_DeleteFileA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7545
lea eax, [ebp - 0x238]
mov edx, 2
call fcn.004048f4
lea eax, [ebp - 0x22c]
mov edx, 0x1a
call fcn.004048f4
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.004048f4
lea eax, [ebp - 4]
call fcn.004048d0
ret