Function at 0x40fd70
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45486e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f8], edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.0042f000
mov eax, dword [0x46eed4]
add esp, 0xc
inc eax
mov dword [0x46eed4], eax
cmp eax, 0xa
ja 0x41091a
test esi, esi
je 0x41091a
push 0x104
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.0043b05d
add esp, 0xc
test eax, eax
jne 0x40fe0f
dec dword [0x46eed4]
jmp 0x410920
lea ecx, [ebp - 0x228]
call fcn.00411160
test al, al
je 0x40fe04
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x410940
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4fc], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4fc]
call fcn.0040e500
test al, al
jne 0x40fe85
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe63
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4fc]
call fcn.0040e740
mov dword [ebp - 4], 1
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x41094a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4f4], eax
push str.Folder
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 2
call fcn.0040e500
test al, al
jne 0x40fed5
push 8
push str.Folder
lea ecx, [ebp - 0x4f4]
call fcn.0040e740
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x4fc]
mov esi, dword [ebp - 0x4f4]
push edi
push esi
push str._s_s
push 0x46cca0
call fcn.00415860
lea edx, [esi - 0x10]
add esp, 0x10
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40ff2f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
lea edx, [ecx + 2]
mov word [ebp - 0x258], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ff60
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.004029b0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x258]
push dword [ebp - 0x4f4]
cmp dword [ebp - 0x244], 8
mov esi, dword [ebp - 0x248]
mov edx, esi
cmovae ecx, dword [ebp - 0x258]
push 1
push 0x4634a8
push esi
call fcn.004118c0
lea ecx, [esi - 1]
add esp, 0x10
cmp eax, ecx
je 0x4100b0
push 0x4634a8
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x270]
call fcn.00411660
mov esi, eax
add esp, 4
lea eax, [ebp - 0x258]
cmp eax, esi
je 0x410070
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x41002f
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410025
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x248], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x4100b0
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4100a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x288]
call fcn.00402600
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
push 0x463d94
lea edx, [ebp - 0x288]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x270]
call fcn.00411660
mov esi, eax
add esp, 4
lea eax, [ebp - 0x288]
cmp eax, esi
je 0x410197
mov edx, dword [ebp - 0x274]
cmp edx, 8
jb 0x410156
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41014c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410959
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov dword [ebp - 0x278], 0
xor eax, eax
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x288], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x278], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x4101d7
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4101cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410959
push edx
push ecx
call fcn.0042cd10
add esp, 8
cmp dword [ebp - 0x274], 8
lea ecx, [ebp - 0x4f0]
lea eax, [ebp - 0x288]
cmovae eax, dword [ebp - 0x288]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4f4], edi
cmp edi, 0xffffffff
je 0x4107ee
test byte [ebp - 0x4f0], 0x10
je 0x4103cd
mov edx, 0x463bb0
lea ecx, [ebp - 0x4c4]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x410248
test ax, ax
je 0x410244
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x410248
add ecx, 4
add edx, 4
test ax, ax
jne 0x410222
xor eax, eax
jmp 0x41024d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4104dc
mov ecx, 0x463bb4
lea eax, [ebp - 0x4c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410286
test dx, dx
je 0x410282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410286
add eax, 4
add ecx, 4
test dx, dx
jne 0x410260
xor eax, eax
jmp 0x41028b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4104dc
xor eax, eax
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2a0], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4102c3
sub ecx, edx
lea eax, [ebp - 0x4c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004029b0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x270]
call fcn.004117a0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x410310
mov eax, dword [eax]
mov esi, dword [ebp - 0x4f8]
mov ecx, eax
mov edx, esi
call fcn.0040fd70
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x410363
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41095e
push edx
push ecx
call fcn.0042cd10
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x4104e2
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4103be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41095e
push edx
push ecx
call fcn.0042cd10
add esp, 8
jmp 0x4104e2
lea eax, [ebp - 0x4c4]
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x270]
call fcn.00411660
mov esi, eax
add esp, 4
lea eax, [ebp - 0x240]
cmp eax, esi
je 0x410479
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x410438
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41042e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410963
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x4104b9
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4104af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410963
push edx
push ecx
call fcn.0042cd10
add esp, 8
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x240]
mov esi, dword [ebp - 0x4f8]
mov edx, esi
cmovae ecx, dword [ebp - 0x240]
call fcn.0040f8b0
jmp 0x4104e2
mov esi, dword [ebp - 0x4f8]
lea eax, [ebp - 0x4f0]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call edi
test eax, eax
je 0x4107e2
nop word [eax + eax]
test byte [ebp - 0x4f0], 0x10
lea eax, [ebp - 0x4c4]
je 0x4106c4
mov ecx, 0x463bb0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41053e
test dx, dx
je 0x41053a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41053e
add eax, 4
add ecx, 4
test dx, dx
jne 0x410518
xor eax, eax
jmp 0x410543
sbb eax, eax
or eax, 1
test eax, eax
je 0x4107cb
mov ecx, 0x463bb4
lea eax, [ebp - 0x4c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41057c
test dx, dx
je 0x410578
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41057c
add eax, 4
add ecx, 4
test dx, dx
jne 0x410556
xor eax, eax
jmp 0x410581
sbb eax, eax
or eax, 1
test eax, eax
je 0x4107cb
xor eax, eax
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2a0], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4105c0
sub ecx, edx
lea eax, [ebp - 0x4c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004029b0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x270]
call fcn.004117a0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x41060d
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.0040fd70
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x41065a
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410650
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x4107cb
mov ecx, dword [ebp - 0x2a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4106b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
jmp 0x4107cb
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x270]
call fcn.00411660
mov esi, eax
add esp, 4
lea eax, [ebp - 0x240]
cmp eax, esi
je 0x41076a
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x410729
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41071f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x25c]
cmp edx, 8
jb 0x4107aa
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4107a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410954
push edx
push ecx
call fcn.0042cd10
add esp, 8
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x240]
mov esi, dword [ebp - 0x4f8]
mov edx, esi
cmovae ecx, dword [ebp - 0x240]
call fcn.0040f8b0
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f4]
call edi
test eax, eax
jne 0x410500
push dword [ebp - 0x4f4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x410817
cmp dword [ebp - 0x4f8], eax
je 0x410817
push 4
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec dword [0x46eed4]
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x41085d
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410968
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x274]
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
cmp edx, 8
jb 0x4108ba
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4108b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410968
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x244]
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
cmp edx, 8
jb 0x410913
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410968
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov eax, 1
jmp 0x410922
dec eax
mov dword [0x46eed4], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0040f2e0
push 0x80004005
call fcn.0040f2e0
call fcn.0043182f
call fcn.0043182f
call fcn.0043182f
call fcn.0043182f
call fcn.0043182f
int3