Function at 0x404c70
Capabilities:
Set file attributes

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 0x42036b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x110
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x104], edi
push str.TEMP
mov dword [ebp - 0x108], edi
call fcn.0040e1c3
mov edx, eax
mov dword [ebp - 0x3c], 0
mov ecx, edx
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x4c], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cf0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00404670
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
cmp eax, 1
jb 0x4053ab
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
push 1
cmova eax, dword [ebp - 0x4c]
push 0x4281a0
push ecx
push eax
push ecx
push dword [ebp - 0x104]
lea ecx, [ebp - 0x120]
call fcn.00406da0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10c]
mov eax, edx
mov ecx, dword [ebp - 0x110]
sub eax, ecx
push 0xf
push str.TerraMobaRP.dll
cmp eax, 0xf
jb 0x404d93
cmp edx, 0xf
lea esi, [ebp - 0x120]
lea eax, [ecx + 0xf]
cmova esi, dword [ebp - 0x120]
add esi, ecx
mov dword [ebp - 0x110], eax
push esi
call fcn.004093b0
add esp, 0xc
mov byte [esi + 0xf], 0
lea eax, [ebp - 0x120]
jmp 0x404dad
mov byte [ebp - 0x104], 0
lea ecx, [ebp - 0x120]
push dword [ebp - 0x104]
push 0xf
call fcn.004048a0
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0xf
jbe 0x404e22
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404e18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053b0
push ecx
push edx
call fcn.004081f9
add esp, 8
push 0xb0
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], 0
push 0
push eax
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
call fcn.00409940
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x100]
cmova eax, dword [ebp - 0x34]
push eax
call fcn.004067b0
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x104], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xf4], 6
jne 0x405225
xor esi, esi
mov edx, 0x5a1f66
movzx eax, byte [edx + 1]
lea esi, [esi + 6]
mov cl, byte [esi + 0x42bb62]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb62], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx + 1], al
movzx eax, byte [edx]
mov cl, byte [esi + 0x42bb63]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb63], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx], al
movzx eax, byte [edx - 1]
mov cl, byte [esi + 0x42bb64]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb64], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 1], al
movzx eax, byte [edx - 2]
mov cl, byte [esi + 0x42bb65]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb65], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 2], al
movzx eax, byte [edx - 3]
mov cl, byte [esi + 0x42bb66]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb66], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 3], al
movzx eax, byte [edx - 4]
mov cl, byte [esi + 0x42bb67]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb67], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 4], al
sub edx, 6
cmp edx, 0x4e6d66
jg 0x404eb0
xor esi, esi
nop word [eax + eax]
cmp esi, 0x176400
jae 0x404fbc
mov dl, byte [esi + 0x42bb68]
lea ecx, [ebp - 0x100]
call fcn.00406ea0
inc esi
jmp 0x404fa0
xor esi, esi
mov edx, 0x5a1f66
movzx eax, byte [edx + 1]
lea esi, [esi + 6]
mov cl, byte [esi + 0x42bb62]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb62], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx + 1], al
movzx eax, byte [edx]
mov cl, byte [esi + 0x42bb63]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb63], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx], al
movzx eax, byte [edx - 1]
mov cl, byte [esi + 0x42bb64]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb64], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 1], al
movzx eax, byte [edx - 2]
mov cl, byte [esi + 0x42bb65]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb65], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 2], al
movzx eax, byte [edx - 3]
mov cl, byte [esi + 0x42bb66]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb66], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 3], al
movzx eax, byte [edx - 4]
mov cl, byte [esi + 0x42bb67]
movzx eax, byte [eax + 0x4281b8]
mov byte [esi + 0x42bb67], al
movzx eax, cl
movzx eax, byte [eax + 0x4281b8]
mov byte [edx - 4], al
sub edx, 6
cmp edx, 0x4e6d66
jg 0x404fc3
lea ecx, [ebp - 0xfc]
call fcn.00403ca0
test eax, eax
jne 0x4050e3
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401d30
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push 7
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x100]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x34]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x34], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xfc]
call fcn.00403260
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x104], eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0040785e
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp ecx, 0xf
jbe 0x4051d8
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4051ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053b5
push ecx
push edx
call fcn.004081f9
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x40521e
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053b5
push ecx
push edx
call fcn.004081f9
add esp, 8
mov eax, edi
jmp 0x40538d
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x427f9c
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00404670
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x104], eax
lea ecx, [ebp - 0xfc]
call fcn.00403260
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x104], eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0040785e
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp ecx, 0xf
jbe 0x4052f1
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4052e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053b5
push ecx
push edx
call fcn.004081f9
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0xf
jbe 0x40521e
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053b5
jmp 0x405214
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004081b6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004013c0
call fcn.0040e07b
call fcn.0040e07b
int3