Function at 0x475d50
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6105f1
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x320], eax
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x300], eax
call fcn.00486cd6
lea ecx, [ebp - 0x310]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x310], eax
mov dword [eax], ecx
xor esi, esi
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x324], esi
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x475e68
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 0x2f8], edi
call fcn.00472b10
cmp edi, 0xffffffff
jne 0x475ecd
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp - 0x2fc]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x65fe6c
push esi
call dword [edi + 0x24]
add esp, 0x14
mov byte [ebp - 0x2f1], 0
lea ecx, [ebp - 0x32c]
call fcn.0040ba60
lea ecx, [ebp - 0x338]
call fcn.0040ba60
lea ecx, [ebp - 0x310]
call fcn.00475840
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x476c52
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476c48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
jmp 0x476c48
mov ecx, dword [eax]
push edi
mov edi, dword [ebp - 0x2fc]
push edi
push str.The_file_attributes_of_directory____s_is__d
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x2f8]
add esp, 0x10
shr eax, 4
test al, 1
je 0x475e68
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
mov ecx, edi
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475f20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.0040be20
mov edx, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x308]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x475f65
push 1
lea ecx, [ebp - 0x310]
call fcn.00475ae0
mov edx, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x304]
dec ecx
and eax, ecx
mov dword [ebp - 0x304], eax
add eax, edx
and ecx, eax
mov eax, dword [ebp - 0x30c]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x475fa7
push 1
lea ecx, [ebp - 0x310]
call fcn.0040ccb0
mov ecx, dword [ebp - 0x30c]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x40]
push ecx
push dword [edi + eax]
lea eax, [ebp - 0x310]
push eax
call fcn.0040cd10
inc dword [ebp - 0x300]
lea eax, [ebp - 0x40]
add esp, 0xc
lea ecx, [ebp - 0x32c]
push eax
push 0
call fcn.0040c9d0
mov ecx, dword [ebp - 0x300]
test ecx, ecx
je 0x476b3e
add ecx, dword [ebp - 0x304]
lea esi, [ebp - 0x310]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x314], ecx
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x476024
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x476015
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040be20
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x476c78
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x18], 0
cmovae eax, edx
mov dword [ebp - 0x14], 0
setae byte [ebp - 0x2f1]
mov dword [ebp - 0x2fc], eax
inc ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2f8], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x4760b2
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x47608a
mov esi, SysReAllocString
jmp 0x476095
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
xor ecx, ecx
mov word [edi + esi], ax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x31c]
or esi, 0x800
mov word [edi + eax*2 + 2], cx
push 1
push 0x66ee40
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040ff20
xor ecx, ecx
or esi, 0x400
mov dword [ebp - 0x31c], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x5c]
movq qword [ebp - 0x318], xmm1
movups xmmword [ebp - 0x50], xmm0
cmp eax, 8
jb 0x47614f
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040bf70
movups xmm0, xmmword [ebp - 0x50]
movq xmm1, qword [ebp - 0x318]
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x60], xmm1
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x70], xmm0
cmp ecx, 8
jb 0x476196
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47618c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov eax, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x300]
dec eax
mov edx, dword [ebp - 0x308]
add ecx, eax
mov eax, dword [ebp - 0x30c]
dec edx
and edx, ecx
push dword [eax + edx*4]
lea eax, [ebp - 0x310]
push eax
call fcn.0040cba0
mov eax, dword [ebp - 0x304]
add esp, 8
sub dword [ebp - 0x300], 1
mov ecx, 0
cmove eax, ecx
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x304], eax
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2fc], esi
cmp esi, 0xffffffff
je 0x476c31
nop dword [eax + eax]
mov edx, 0x662818
lea ecx, [ebp - 0x2c4]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x476246
test ax, ax
je 0x476242
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x476246
add ecx, 4
add edx, 4
test ax, ax
jne 0x476220
xor eax, eax
jmp 0x47624b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4767b1
mov eax, 0x66eefc
lea ecx, [ebp - 0x2c4]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x476286
test dx, dx
je 0x476282
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x476286
add ecx, 4
add eax, 4
test dx, dx
jne 0x476260
xor eax, eax
jmp 0x47628b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4767b1
test byte [ebp - 0x2f0], 0x10
je 0x4767be
cmp byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x28]
cmovne eax, dword [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x314], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x476317
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4762ef
mov esi, SysReAllocString
jmp 0x4762fa
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2 + 2], cx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 6
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476350
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x318], xmm0
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x308]
mov byte [ebp - 4], 7
lea eax, [edx + 1]
cmp ecx, eax
ja 0x4763d5
push 1
lea ecx, [ebp - 0x310]
call fcn.00475ae0
mov edx, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x304]
dec ecx
and eax, ecx
mov dword [ebp - 0x304], eax
add eax, edx
and ecx, eax
mov eax, dword [ebp - 0x30c]
lea esi, [ecx*4]
cmp dword [esi + eax], 0
jne 0x476414
push 0x18
call fcn.00486cd6
mov ecx, dword [ebp - 0x30c]
add esp, 4
mov dword [ecx + esi], eax
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + esi]
movups xmm0, xmmword [ebp - 0x50]
mov byte [ebp - 4], 4
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x318]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x300]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47646f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476465
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
cmp byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x28]
cmovne eax, dword [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x314], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x4764e6
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4764be
mov esi, SysReAllocString
jmp 0x4764c9
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2 + 2], cx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476520
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff20
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm2, qword [eax + 0x10]
movups xmmword [ebp - 0x58], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x48], xmm2
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x328]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x324]
je 0x47659f
xorps xmm0, xmm0
xor edx, edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, 7
movups xmmword [eax], xmm1
mov word [ebp - 0x58], dx
movq qword [eax + 0x10], xmm2
add eax, 0x18
mov dword [ebp - 0x328], eax
jmp 0x4765b2
lea ecx, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x32c]
call fcn.004315b0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 8
cmp ecx, 8
jb 0x4765ed
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4765e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x47662b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476621
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
cmp byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x28]
cmovne eax, dword [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x314], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x4766a2
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x47667a
mov esi, SysReAllocString
jmp 0x476685
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2 + 2], cx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0xa
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4766e0
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff20
or dword [ebp - 0x31c], 0x3f0
xor ecx, ecx
mov byte [ebp - 4], 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x78], xmm0
cmp ecx, 8
jb 0x47676e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476764
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x4767ab
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4767a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov esi, dword [ebp - 0x2fc]
test byte [ebp - 0x2f0], 0x10
jne 0x476afe
cmp byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x28]
cmovne eax, dword [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x314], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x476835
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x47680d
mov esi, SysReAllocString
jmp 0x476818
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2 + 2], cx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0xb
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476870
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff20
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm2, qword [eax + 0x10]
movups xmmword [ebp - 0x58], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x48], xmm2
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x334]
mov byte [ebp - 4], 0xc
cmp eax, dword [ebp - 0x330]
je 0x4768ef
xorps xmm0, xmm0
xor edx, edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, 7
movups xmmword [eax], xmm1
mov word [ebp - 0x58], dx
movq qword [eax + 0x10], xmm2
add eax, 0x18
mov dword [ebp - 0x334], eax
jmp 0x476902
lea ecx, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x338]
call fcn.004315b0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0xb
cmp ecx, 8
jb 0x47693d
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476933
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x47697b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476971
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
cmp byte [ebp - 0x2f1], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x28]
cmovne eax, dword [ebp - 0x40]
mov esi, 7
mov dword [ebp - 0x314], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp ecx, esi
jbe 0x4769f2
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4769ca
mov esi, SysReAllocString
jmp 0x4769d5
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c750
mov ecx, dword [ebp - 0x2f8]
mov edi, eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
call fcn.005d4d40
mov eax, 0x5c
add esp, 0xc
mov word [edi + esi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2 + 2], cx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0xd
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476a30
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ff20
or dword [ebp - 0x31c], 0xf
xor ecx, ecx
mov byte [ebp - 4], 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x78], xmm0
cmp ecx, 8
jb 0x476abb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476ab1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x476af8
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476aee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov esi, dword [ebp - 0x2fc]
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x476210
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
cmp eax, 0x12
jne 0x476c22
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0x300]
test ecx, ecx
jne 0x475fe2
mov esi, dword [ebp - 0x338]
cmp esi, dword [ebp - 0x334]
je 0x476b70
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x476b5a
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x476c31
add esi, 0x18
cmp esi, dword [ebp - 0x334]
jne 0x476b50
mov esi, dword [ebp - 0x32c]
mov edx, dword [ebp - 0x328]
cmp esi, edx
je 0x476bdc
mov ecx, esi
mov eax, edx
sub eax, 0x18
cmp ecx, eax
je 0x476bb2
movups xmm0, xmmword [eax]
movups xmm1, xmmword [ecx]
movq xmm2, qword [ecx + 0x10]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
add ecx, 0x18
movups xmmword [eax], xmm1
movq qword [eax + 0x10], xmm2
cmp ecx, eax
jne 0x476b84
cmp esi, edx
je 0x476bdc
mov edi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x476bca
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x476c31
add esi, 0x18
cmp esi, dword [ebp - 0x328]
jne 0x476bc0
mov byte [ebp - 0x2f1], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x475e6f
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476c13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476c73
push ecx
push edx
call fcn.005d0cf8
add esp, 8
jmp 0x475e6f
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov byte [ebp - 0x2f1], 0
jmp 0x476be3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x320]
mov byte [ebp - 0x2f1], 0
mov dword [ecx], eax
jmp 0x476be3
push ecx
push edx
call fcn.005d0cf8
add esp, 8
mov al, byte [ebp - 0x2f1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret
call fcn.005d87bd
call fcn.004084d0
int3