Function at 0x4af970
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5376
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.00439580
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf8], eax
mov word [ebp - 0x108], ax
mov dword [ebp - 0x10c], 7
mov dword [ebp - 0x110], eax
mov word [ebp - 0x120], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x90]
push eax
push 0x622628
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], eax
mov word [ebp - 0x90], ax
call fcn.00407060
xor eax, eax
mov byte [ebp - 4], 7
push 0xffffffffffffffff
push eax
add esi, 0x4c
mov dword [ebp - 0xdc], 7
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
call fcn.00407550
lea edx, [ebp - 0x120]
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.004d67e0
lea ecx, [ebp - 0xf0]
call fcn.004d6550
xor esi, esi
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0xc4], 7
push eax
push 0x622628
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00407060
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov edx, esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.004d61a0
lea eax, [ebp - 0x28]
mov edx, 0x622944
push eax
lea ecx, [ebp - 0x4c]
call fcn.0042b470
push eax
lea edx, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3a8]
call fcn.004b1260
add esp, 8
mov edi, eax
lea eax, [ebp - 0xd8]
cmp eax, edi
je 0x4afbad
mov eax, dword [ebp - 0xc4]
cmp eax, 8
jb 0x4afb84
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xc4], 7
push edi
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.004098a0
mov eax, dword [ebp - 0x394]
cmp eax, 8
jb 0x4afbcb
inc eax
lea ecx, [ebp - 0x3a8]
push eax
push dword [ebp - 0x3a8]
call fcn.00407b40
xor eax, eax
mov byte [ebp - 4], 0xa
mov word [ebp - 0x3a8], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x394], 7
mov dword [ebp - 0x398], 0
cmp eax, 8
jb 0x4afc01
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xac], 7
push eax
push 0x622628
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
call fcn.00407060
push 1
push ecx
push 0x62325c
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
call fcn.004b1090
mov ebx, eax
lea ecx, [ebp - 0xd8]
push ebx
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a860
mov edi, eax
lea eax, [ebp - 0x90]
cmp eax, edi
je 0x4afca4
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x4afc81
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x7c], 7
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
call fcn.004098a0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4afcbd
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040a860
mov edi, eax
lea eax, [ebp - 0xc0]
cmp eax, edi
je 0x4afd25
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x4afcfc
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xac], 7
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
call fcn.004098a0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4afd3e
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
push 1
push ecx
push 0x62325c
lea ecx, [ebp - 0xf0]
call fcn.004b1090
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a860
mov edi, eax
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x4afd9f
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4afd82
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x5c], 7
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004098a0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4afdb8
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041f820
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x4afde5
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb0], 0
cmp eax, 8
jb 0x4afe17
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
xor eax, eax
mov byte [ebp - 4], 8
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4afe4d
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.00407b40
dec esi
cmp esi, 0xfffffffe
jg 0x4afae0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x108]
call fcn.00407550
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x108]
call fcn.004d65e0
push 0x62325c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0x3a8]
push eax
call fcn.00410ee0
push 0x623258
push eax
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0x12
push eax
call fcn.0041fe70
add esp, 0x24
mov eax, dword [ebp - 0x394]
cmp eax, 8
jb 0x4afedf
inc eax
lea ecx, [ebp - 0x3a8]
push eax
push dword [ebp - 0x3a8]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x394], 7
mov dword [ebp - 0x398], 0
mov word [ebp - 0x3a8], ax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x3ac]
cmp eax, 8
jb 0x4aff1e
inc eax
lea ecx, [ebp - 0x3c0]
push eax
push dword [ebp - 0x3c0]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x3ac], 7
cmp dword [ebp - 0x124], 8
lea ecx, [ebp - 0x388]
mov word [ebp - 0x3c0], ax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push ecx
push eax
mov dword [ebp - 0x3b0], 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x390], eax
cmp eax, 0xffffffff
jne 0x4aff80
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebp - 0x58]
jmp 0x4b0362
xor bl, bl
cmp word [ebp - 0x35c], 0
mov byte [ebp - 0x389], bl
jne 0x4aff96
xor ecx, ecx
jmp 0x4affaf
lea ecx, [ebp - 0x35c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4affa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00407060
mov ecx, 0x61b9c8
lea eax, [ebp - 0x35c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4afff6
test dx, dx
je 0x4afff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4afff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4affd0
xor eax, eax
jmp 0x4afffb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b02b1
mov ecx, 0x623260
lea eax, [ebp - 0x35c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b0036
test dx, dx
je 0x4b0032
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b0036
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b0010
xor eax, eax
jmp 0x4b003b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b02b1
mov ecx, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x34]
xor esi, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x4b021b
mov ebx, dword [ebp - 0x34]
cmp edi, esi
jbe 0x4b058c
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407550
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0xa8]
push 0
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00428fa0
test eax, eax
jne 0x4b0111
push dword [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x389], 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a860
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x4b00de
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
mov eax, dword [ebp - 0x38]
sete byte [ebp - 0x38a]
cmp eax, 8
jb 0x4b0104
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
cmp byte [ebp - 0x38a], 0
jne 0x4b01fc
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b012a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
inc esi
add ebx, 0x18
cmp edi, esi
ja 0x4b006d
mov bl, byte [ebp - 0x389]
cmp bl, 1
jne 0x4b02b1
cmp dword [ebp - 0xf4], 8
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x108]
cmp dword [ebp - 0x94], 8
push ecx
cmovae eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x4b021b
push 0x62325c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041fed0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
cmovae ecx, dword [ebp - 0xa8]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041fe70
mov byte [ebp - 4], 0x15
add esp, 0x18
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4b01d1
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b02b1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
jmp 0x4b02ac
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b0215
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
mov bl, byte [ebp - 0x389]
cmp bl, 1
jne 0x4b02b1
push 0x62325c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041fed0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
cmovae ecx, dword [ebp - 0xa8]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041fe70
add esp, 0x18
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b0278
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0
push eax
call fcn.0041f820
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4b02b1
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00407b40
lea eax, [ebp - 0x388]
push eax
push dword [ebp - 0x390]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4aff80
mov ecx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x58]
sub ecx, edi
push dword [ebp - 0x390]
imul ecx
mov ecx, edi
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [ebp - 0x54]
push ebx
call fcn.004b12b0
mov esi, 3
add esp, 8
cmp ebx, esi
jbe 0x4b035f
lea eax, [esi - 3]
cmp ebx, eax
jbe 0x4b058c
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407550
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b0354
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b40
inc esi
add edi, 0x18
cmp esi, ebx
jb 0x4b0302
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x124]
cmp eax, 8
jb 0x4b0380
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x128], 0
cmp eax, 8
jb 0x4b03bb
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xe0], 0
cmp eax, 8
jb 0x4b03f3
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x80], 0
cmp eax, 8
jb 0x4b0428
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x10c], 7
mov word [ebp - 0x120], ax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x110], 0
cmp eax, 8
jb 0x4b0463
inc eax
lea ecx, [ebp - 0x108]
push eax
push dword [ebp - 0x108]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xf8], 0
cmp eax, 8
jb 0x4b0495
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x4b04c7
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00407b40
xor eax, eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
test edi, edi
je 0x4b0518
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
push edi
call fcn.0040afd0
mov ecx, dword [ebp - 0x50]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
lea ecx, [ebp - 0x58]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.0040acc0
test ebx, ebx
je 0x4b054c
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x30]
push ebx
call fcn.0040afd0
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0xc
imul ecx
lea ecx, [ebp - 0x34]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.0040acc0
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x78]
push eax
push dword [eax]
lea eax, [ebp - 0x390]
push eax
call fcn.0048c450
push dword [ebp - 0x78]
call fcn.00505e00
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 4
push str.invalid_vector_T__subscript
call fcn.00596612
int3